Adding homeassistant 2024.07.03 and some Tuya libs.

I used the gentoo PYPI.eclass's wheel functionality for a few libraries.
This commit is contained in:
Elliott Johnson
2024-07-26 21:14:37 -07:00
parent 528d8b05f0
commit 9f7bb89b22
48 changed files with 1450 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
DIST tinytuya-1.15.0-py2.py3-none-any.whl 121240 BLAKE2B e4b3cc8df8adb9f66770ffe7130ee2cc4ec0912e151b1ea113f7dabf6ac19a2617c26adf4d67e4004fbb37c484a730e6385de7f4f6047e8b08973a630875b454 SHA512 9619f318ae3df541b74167da8ea4ce748b03651c7c411590b97ae85f6cda37ca3d2d2f6b59add8cbd2852a7640dbf7f89ef97ad6ee4631597d2aca8986f35fea
EBUILD tinytuya-1.15.0.ebuild 960 BLAKE2B 780956818474f202599c1916f22d294dc3f7fe6c300234897f6ecc36c7deee7a7f54c6d4250963571411033ebfc2d78ba4c03176768e36b5aaacee40365d412c SHA512 dfeff55e26830f684af5940973a35ba929d14c91fc04798626f44895eb1d39e8a95e681e52c679635f5804cb7a83b1960856543066950772b3ddf7ffa7d246f5

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="Python module to interface with Tuya WiFi smart devices"
HOMEPAGE="https://github.com/jasonacox/tinytuya https://pypi.org/project/tinytuya"
SRC_URI="$(pypi_wheel_url ${PYPI_PN} ${PV} "py2.py3")"
S=${WORKDIR}
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-python/cryptography-3.20.0[${PYTHON_USEDEP}]
~dev-python/requests-2.32.0[${PYTHON_USEDEP}]
~dev-python/colorama-0.4.0[${PYTHON_USEDEP}]"
BDEPEND="app-arch/unzip"
distutils_enable_tests pytest
src_unpack() {
if [[ ${PKGBUMPING} == ${PVR} ]]; then
unzip "${DISTDIR}/${A}" || die
fi
}
python_compile() {
distutils_wheel_install "${BUILD_DIR}/install" \
"${DISTDIR}/$(pypi_wheel_name ${PYPI_PN} ${PV} "py2.py3")"
}