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:
parent
c1cdd0df2b
commit
bc2a4868d7
1
dev-python/miflora/Manifest
Normal file
1
dev-python/miflora/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST miflora-0.7.1.tar.gz 20624 BLAKE2B 2e8386eb589d318455121f77e14f52b3d9c3f3914629ffcccc6c5767cb949e22f240752b817496739dfa80bccac115e25e909fa0fbf07c6c264ec3e6caee69d7 SHA512 069e4133fbd13db6deb19ef6b37ccc8663ca5d9026bc5f4894eb89c1f50dc5cc72695052c30c20857875503019d37ff49615fd1576282e9ce06ce3eff4673cd3
|
11
dev-python/miflora/metadata.xml
Normal file
11
dev-python/miflora/metadata.xml
Normal 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>
|
42
dev-python/miflora/miflora-0.7.1.ebuild
Normal file
42
dev-python/miflora/miflora-0.7.1.ebuild
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user