clean up core-dependencies, remove unreferenced atoms from template:

- user-agents
  - lxml
  - pbr
  - pyrfc3339
  - python-dateutil
  - python-jose-cryptodome
  - ua-parser
  - passlib
add homeassistant-min-0.115.3-r1, with reduced core DEPS for testing
This commit is contained in:
Andreas Billmeier 2020-09-27 10:17:27 +02:00 committed by Andreas Billmeier
parent ce39c01d3d
commit 01969f325a
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 231 additions and 0 deletions

View File

@ -5,6 +5,16 @@
* bump spotipy-2.16.0
* bump pychromecast-7.4.1
* bump aioshelly-0.3.3
* clean up core-dependencies, remove unreferenced atoms from template:
- user-agents
- lxml
- pbr
- pyrfc3339
- python-dateutil
- python-jose-cryptodome
- ua-parser
- passlib
* add homeassistant-min-0.115.3-r1, with reduced core DEPS for testing
2020-09-25
* bump pyairvisual-5.0.2

View File

@ -11,5 +11,6 @@ AUX update-homeassistant 1326 BLAKE2B 917bdd332c4e5dea5177eecd11a7f8d72b911fddfd
DIST homeassistant-0.115.2.tar.gz 7547086 BLAKE2B 33164a6296a8bed40e367323c348309773c71d3bd8cb06fbf2b5d5e8e87d58c074004bbac17f635403051c9481f4dfe7d2a0ddca4bc5ba5b3f97f8101380e961 SHA512 21be9da353554622d0c5d3a390869848d9324260e1cd21798980555416e5932feae9f94f60003985552d0109b809bdde3e5b3f17076e72c6f389711ab4d49346
DIST homeassistant-0.115.3.tar.gz 7547446 BLAKE2B d7e46bd619b7b57b731108cdc5e3a0bf3829325bab2881ec5be0578756fa4c21b1da11aab072c0c18e376adbbf2edc83cdfcbd0cdd4902aa31b13fd52c3bc2f7 SHA512 02f004d1b1b947ea1b5baf6786aadc9aebf8fdeea936f2df70bc12c1564f17b523eaa17676a539f029464e1140fecd033307335d5da7dddcae6ba1a58d4f6f65
EBUILD homeassistant-min-0.115.2.ebuild 9336 BLAKE2B 83c768e3c3b68dcc01979d40eddd04724f2bc838e23bb2532bfba78e1e9b86ff47f3cbffdecd66fa70b5daee0c903eafbc5949e21c9ffef0e45cfc0682c664f9 SHA512 7f2dc8a98980f9395ae7f38194b5c8aac04e0007957100945cfce565c830963a75e4cc824fd32bf2a22658b723f19e517bd9b4637004ceab3fbd7a7819a7b476
EBUILD homeassistant-min-0.115.3-r1.ebuild 9056 BLAKE2B 75c350a6ecfe92b5ac2123b7eff0f8cc92fc4f3a2394f6c0a7388f666f3c3fab97a9491556b27918887546fd0b5e6ba695c4d6fda3ed3757370eb0d8451f18f0 SHA512 9c757dca97a44a74f38ea2e8d946e2e2bc0cae3f6e19ad2829898241f390b5ef57bf218e1c277d23beb94a7bd2a9f7cef1ca18fd140e0681f19f608b9e0ed331
EBUILD homeassistant-min-0.115.3.ebuild 9516 BLAKE2B 1118390164cebcd400b396ca83d7df8fd5851ae8cf2bc211d3b1bb86183ddc0240ac4f221f962075d7daeda401579236f7ba111b7223188ab85d97015cc6e23f SHA512 7c529376c970bbdfc2cad2b60908ce60353b76e6699fc8edc57092f1f24e1c4cd3df069b2711571a3ed39ea25b1f24a08f5ec4c311fb12dd933ae049d4f0a964
MISC metadata.xml 3315 BLAKE2B 64a1be8c672ed11355a332e05fa31c97b4906b48a62fb018e02eefbdbb634f829babeca0e3284a8c55e3a6e1a00a36c81287b3d8578e2de428c005e3079b4def SHA512 8c4e8c505436a6325270d2fbcf391d679dfdb7f104fca684a3eddddf924a6122469ca9679f60f7a1e7601e9721a4ee69f9df3eaa6e150860ffeafd1b72693d77

View File

@ -0,0 +1,220 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7,8} )
inherit readme.gentoo-r1 eutils distutils-r1
MY_PN=homeassistant
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/home-assistant/core.git"
EGIT_BRANCH="dev"
S="${WORKDIR}/core/"
else
MY_PV=${PV/_beta/b}
MY_P=${MY_PN}-${MY_PV}
SRC_URI="https://github.com/home-assistant/core/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/core-${MY_PV}"
fi
DESCRIPTION="Open-source home automation platform running on Python 3.7 & 3.8"
HOMEPAGE="https://home-assistant.io/ https://git.edevau.net/onkelbeh/HomeAssistantRepository/"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm64 x86 amd64-linux x86-linux"
IUSE="androidtv axis +caldav cli coronavirus darksky enigma2 esphome fronius github influxdb kodi maxcube maxcube_hack mikrotik +mqtt +mysql +otp owntracks +ping qnap +recorder samsungtv +scrape shelly signal_messenger +snmp socat sonos +sql +ssl test tradfri +version workday yamaha yamaha_musiccast"
# external deps
RDEPEND="${PYTHON_DEPS} acct-group/${MY_PN} acct-user/${MY_PN}
|| ( dev-lang/python:3.7 dev-lang/python:3.8 )
app-admin/logrotate
dev-db/sqlite
dev-libs/libfastjson
>=dev-libs/xerces-c-3.1.4-r1"
# make sure no conflicting main Ebuild is installed
RDEPEND="${RDEPEND}
!app-misc/homeassistant
!app-misc/homeassistant-full"
# Home Assistant Core dependencies
# from package_constraints.txt
RDEPEND="${RDEPEND}
~dev-python/aiohttp-3.6.2[${PYTHON_USEDEP}]
~dev-python/aiohttp-cors-0.7.0[${PYTHON_USEDEP}]
~dev-python/astral-1.10.1[${PYTHON_USEDEP}]
~dev-python/async_timeout-3.0.1[${PYTHON_USEDEP}]
~dev-python/attrs-19.3.0[${PYTHON_USEDEP}]
~dev-python/bcrypt-3.1.7[${PYTHON_USEDEP}]
>=dev-python/btlewrap-0.0.10[${PYTHON_USEDEP}]
>=dev-python/certifi-2020.6.20[${PYTHON_USEDEP}]
~dev-python/ciso8601-2.1.3[${PYTHON_USEDEP}]
~dev-python/cryptography-2.9.2[${PYTHON_USEDEP}]
~dev-python/defusedxml-0.6.0[${PYTHON_USEDEP}]
~dev-python/distro-1.5.0[${PYTHON_USEDEP}]
~dev-python/emoji-0.5.4[${PYTHON_USEDEP}]
~dev-python/hass-nabucasa-0.37.0[${PYTHON_USEDEP}]
~dev-python/home-assistant-frontend-20200918.2[${PYTHON_USEDEP}]
>=dev-python/httplib2-0.18.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep '~dev-python/importlib-metadata-1.6.0[${PYTHON_USEDEP}]' python3_7)
~dev-python/jinja-2.11.2[${PYTHON_USEDEP}]
~dev-python/netdisco-2.8.2[${PYTHON_USEDEP}]
~dev-python/paho-mqtt-1.5.0[${PYTHON_USEDEP}]
~dev-python/pillow-7.2.0[${PYTHON_USEDEP}]
>=dev-python/pip-8.0.3[${PYTHON_USEDEP}]
>=dev-python/pycryptodome-3.6.6[${PYTHON_USEDEP}]
~dev-python/pyjwt-1.7.1[${PYTHON_USEDEP}]
~dev-python/pynacl-1.3.0[${PYTHON_USEDEP}]
~dev-python/python-slugify-4.0.1[${PYTHON_USEDEP}]
>=dev-python/pytz-2020.1[${PYTHON_USEDEP}]
~dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
~dev-python/requests-2.24.0[${PYTHON_USEDEP}]
~dev-python/ruamel-yaml-0.15.100[${PYTHON_USEDEP}]
~dev-python/sqlalchemy-1.3.19[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.24.3[${PYTHON_USEDEP}]
~dev-python/voluptuous-serialize-2.4.0[${PYTHON_USEDEP}]
~dev-python/voluptuous-0.11.7[${PYTHON_USEDEP}]
~dev-python/yarl-1.4.2[${PYTHON_USEDEP}]
~dev-python/zeroconf-0.28.5[${PYTHON_USEDEP}]"
# unknown origin, still something to clean up here
RDEPEND="${RDEPEND}
~dev-python/base36-0.1.1[${PYTHON_USEDEP}]
~dev-python/colorlog-4.2.1[${PYTHON_USEDEP}]
~dev-python/fnvhash-0.1.0[${PYTHON_USEDEP}]
~dev-python/gTTS-token-1.1.3[${PYTHON_USEDEP}]
~dev-python/HAP-python-3.0.0[${PYTHON_USEDEP}]
>=dev-python/multidict-4.5.2[${PYTHON_USEDEP}]
>=dev-python/numpy-1.19.1[${PYTHON_USEDEP}]
>=dev-python/pycparser-2.19[${PYTHON_USEDEP}]
>=dev-python/pyotp-2.3.0[${PYTHON_USEDEP}]
>=dev-python/pyqrcode-1.2.1[${PYTHON_USEDEP}]
~dev-python/pysnmp-4.4.12[${PYTHON_USEDEP}]
~dev-python/RestrictedPython-5.0[${PYTHON_USEDEP}]
>=dev-python/wakeonlan-1.1.6[${PYTHON_USEDEP}]
>=dev-python/websocket-client-0.56.0[${PYTHON_USEDEP}]
~dev-python/xmltodict-0.12.0[${PYTHON_USEDEP}]
~media-libs/mutagen-1.45.1"
# Module requirements from useflags
RDEPEND="${RDEPEND}
androidtv? ( ~dev-python/adb-shell-0.2.1[${PYTHON_USEDEP}] ~dev-python/androidtv-0.0.50[${PYTHON_USEDEP}] ~dev-python/pure-python-adb-0.3.0[${PYTHON_USEDEP}] )
axis? ( ~dev-python/axis-37[${PYTHON_USEDEP}] )
caldav? ( ~dev-python/caldav-0.6.1[${PYTHON_USEDEP}] )
cli? ( app-misc/home-assistant-cli )
coronavirus? ( ~dev-python/coronavirus-1.1.1[${PYTHON_USEDEP}] )
darksky? ( ~dev-python/python-forecastio-1.4.0[${PYTHON_USEDEP}] )
enigma2? ( ~dev-python/openwebifpy-3.1.1[${PYTHON_USEDEP}] )
esphome? ( ~dev-python/aioesphomeapi-2.6.3[${PYTHON_USEDEP}] )
fronius? ( ~dev-python/PyFronius-0.4.6[${PYTHON_USEDEP}] )
github? ( ~dev-python/PyGithub-1.43.8[${PYTHON_USEDEP}] )
influxdb? ( ~dev-python/influxdb-5.2.3[${PYTHON_USEDEP}] ~dev-python/influxdb-client-1.8.0[${PYTHON_USEDEP}] )
kodi? ( ~dev-python/pykodi-0.2.0[${PYTHON_USEDEP}] )
maxcube? ( ~dev-python/maxcube-api-0.1.0[${PYTHON_USEDEP}] )
mikrotik? ( ~dev-python/librouteros-3.0.0[${PYTHON_USEDEP}] )
mqtt? ( ~dev-python/paho-mqtt-1.5.0[${PYTHON_USEDEP}] )
mysql? ( dev-python/mysql-connector-python[${PYTHON_USEDEP}] dev-python/mysqlclient[${PYTHON_USEDEP}] )
otp? ( ~dev-python/pyotp-2.3.0[${PYTHON_USEDEP}] )
owntracks? ( ~dev-python/pynacl-1.3.0[${PYTHON_USEDEP}] )
ping? ( ~dev-python/icmplib-1.1.3[${PYTHON_USEDEP}] )
qnap? ( ~dev-python/qnapstats-0.3.0[${PYTHON_USEDEP}] )
recorder? ( ~dev-python/sqlalchemy-1.3.19[${PYTHON_USEDEP}] )
samsungtv? ( ~dev-python/samsungctl-0.7.1[${PYTHON_USEDEP}] ~dev-python/samsungtvws-1.4.0[${PYTHON_USEDEP}] )
scrape? ( ~dev-python/beautifulsoup-4.9.1[${PYTHON_USEDEP}] )
shelly? ( ~dev-python/aioshelly-0.3.2[${PYTHON_USEDEP}] )
signal_messenger? ( ~dev-python/pysignalclirestapi-0.3.4[${PYTHON_USEDEP}] )
snmp? ( ~dev-python/pysnmp-4.4.12[${PYTHON_USEDEP}] )
socat? ( net-misc/socat )
sonos? ( ~dev-python/pysonos-0.0.33[${PYTHON_USEDEP}] )
ssl? ( dev-libs/openssl app-crypt/certbot net-proxy/haproxy )
tradfri? ( ~dev-python/pytradfri-7.0.2[${PYTHON_USEDEP}] )
version? ( ~dev-python/pyhaversion-3.4.2[${PYTHON_USEDEP}] )
workday? ( ~dev-python/holidays-0.10.3[${PYTHON_USEDEP}] )
yamaha? ( ~dev-python/rxv-0.6.0[${PYTHON_USEDEP}] )
yamaha_musiccast? ( ~dev-python/pymusiccast-0.1.6[${PYTHON_USEDEP}] )"
BDEPEND="${RDEPEND}
test? (
~dev-python/astroid-2.4.2[${PYTHON_USEDEP}]
~dev-python/asynctest-0.13.0[${PYTHON_USEDEP}]
~dev-python/codecov-2.1.0[${PYTHON_USEDEP}]
~dev-python/coverage-5.2.1[${PYTHON_USEDEP}]
~dev-python/jsonpickle-1.4.1[${PYTHON_USEDEP}]
~dev-python/mock-open-1.4.0[${PYTHON_USEDEP}]
~dev-python/mypy-0.780[${PYTHON_USEDEP}]
~dev-python/pipdeptree-1.0.0[${PYTHON_USEDEP}]
~dev-python/pre-commit-2.7.1[${PYTHON_USEDEP}]
~dev-python/pylint-strict-informational-0.1[${PYTHON_USEDEP}]
~dev-python/pylint-2.6.0[${PYTHON_USEDEP}]
~dev-python/pytest-aiohttp-0.3.0[${PYTHON_USEDEP}]
~dev-python/pytest-cov-2.10.0[${PYTHON_USEDEP}]
~dev-python/pytest-sugar-0.9.3[${PYTHON_USEDEP}]
~dev-python/pytest-test-groups-1.0.3[${PYTHON_USEDEP}]
~dev-python/pytest-timeout-1.3.4[${PYTHON_USEDEP}]
~dev-python/pytest-xdist-1.32.0[${PYTHON_USEDEP}]
~dev-python/pytest-5.4.3[${PYTHON_USEDEP}]
~dev-python/requests-mock-1.8.0[${PYTHON_USEDEP}]
~dev-python/responses-0.10.6[${PYTHON_USEDEP}]
~dev-python/stdlib-list-0.7.0[${PYTHON_USEDEP}]
~dev-python/tqdm-4.48.2[${PYTHON_USEDEP}]
)
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]"
INSTALL_DIR="/opt/${MY_PN}"
DISABLE_AUTOFORMATTING=1
DOC_CONTENTS="
The HA interface listens on port 8123
hass configuration is in: /etc/${MY_PN}
daemon command line arguments are configured in: /etc/conf.d/${MY_PN}
logging is to: /var/log/${MY_PN}/{server,errors,stdout}.log
The sqlite db is by default in: /etc/${MY_PN}
support at https://git.edevau.net/onkelbeh/HomeAssistantRepository
"
S="${WORKDIR}/core-${MY_PV}"
DOCS="README.rst"
src_prepare() {
# https://github.com/home-assistant/home-assistant/issues/28811
if use maxcube_hack ; then
eapply "${FILESDIR}/maxcube_TypeError_01114_dirty_hack.patch"
fi
eapply_user
}
python_install_all() {
dodoc ${DOCS}
distutils-r1_python_install_all
keepdir "$INSTALL_DIR"
keepdir "/etc/${MY_PN}"
fowners -R "${MY_PN}:${MY_PN}" "/etc/${MY_PN}"
keepdir "/var/log/${MY_PN}"
fowners -R "${MY_PN}:${MY_PN}" "/var/log/${MY_PN}"
newconfd "${FILESDIR}/${MY_PN}.conf.d" "${MY_PN}"
newinitd "${FILESDIR}/${MY_PN}.init.d" "${MY_PN}"
dobin "${FILESDIR}/hasstest"
if use socat ; then
newinitd "${FILESDIR}/socat-zwave.init.d" "socat-zwave"
sed -i -e 's/# need socat-zwave/need socat-zwave/g' "${D}/etc/init.d/${MY_PN}" || die
fi
if use mqtt ; then
sed -i -e 's/# need mosquitto/need mosquitto/g' "${D}/etc/init.d/${MY_PN}" || die
fi
insinto /etc/logrotate.d
newins "${FILESDIR}/${MY_PN}.logrotate" "${MY_PN}"
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}