dev-python/miflora: Import and bump package

The original ebuild was from overlay HomeAssistantRepository.
The version in this overlay supports only ~amd64 and python3.9 and 10
and has some minor modifications inside the ebuild (style, EAPI=8,
proper time range in ebuild copyright header).

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Nils Freydank <holgersson@posteo.de>
This commit is contained in:
Nils Freydank 2021-12-25 18:16:10 +01:00
parent c1cdd0df2b
commit bc2a4868d7
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST miflora-0.7.1.tar.gz 20624 BLAKE2B 2e8386eb589d318455121f77e14f52b3d9c3f3914629ffcccc6c5767cb949e22f240752b817496739dfa80bccac115e25e909fa0fbf07c6c264ec3e6caee69d7 SHA512 069e4133fbd13db6deb19ef6b37ccc8663ca5d9026bc5f4894eb89c1f50dc5cc72695052c30c20857875503019d37ff49615fd1576282e9ce06ce3eff4673cd3

View File

@ -0,0 +1,11 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>holgersson@posteo.de</email>
<name>Nils Freydank</name>
</maintainer>
<upstream>
<remote-id type="github">basnijholt/miflora</remote-id>
</upstream>
</pkgmetadata>

View File

@ -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
}