diff --git a/dev-python/miflora/Manifest b/dev-python/miflora/Manifest new file mode 100644 index 0000000..fe4fbe0 --- /dev/null +++ b/dev-python/miflora/Manifest @@ -0,0 +1 @@ +DIST miflora-0.7.1.tar.gz 20624 BLAKE2B 2e8386eb589d318455121f77e14f52b3d9c3f3914629ffcccc6c5767cb949e22f240752b817496739dfa80bccac115e25e909fa0fbf07c6c264ec3e6caee69d7 SHA512 069e4133fbd13db6deb19ef6b37ccc8663ca5d9026bc5f4894eb89c1f50dc5cc72695052c30c20857875503019d37ff49615fd1576282e9ce06ce3eff4673cd3 diff --git a/dev-python/miflora/metadata.xml b/dev-python/miflora/metadata.xml new file mode 100644 index 0000000..c8779b5 --- /dev/null +++ b/dev-python/miflora/metadata.xml @@ -0,0 +1,11 @@ + + + + + holgersson@posteo.de + Nils Freydank + + + basnijholt/miflora + + diff --git a/dev-python/miflora/miflora-0.7.1.ebuild b/dev-python/miflora/miflora-0.7.1.ebuild new file mode 100644 index 0000000..b4cab2c --- /dev/null +++ b/dev-python/miflora/miflora-0.7.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{9..10} ) + +inherit distutils-r1 + +DESCRIPTION="Library to read data from Mi Flora sensor" +HOMEPAGE="https://github.com/basnijholt/miflora https://pypi.org/project/miflora/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +DOCS="README.md" + +RDEPEND=" + dev-python/bluepy[${PYTHON_USEDEP}] + dev-python/btlewrap[${PYTHON_USEDEP}] +" +BDEPEND=" + ${REDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +src_prepare() { + sed -i "s/packages=find_packages()/packages=find_packages(exclude=['test','test.*'])/g" setup.py || die + default +} + +python_test() { + nosetests --verbose || die + py.test -v -v || die +}