2023-06-11 15:09:39 +02:00
|
|
|
# Copyright 2019-2023 Gentoo Authors
|
2021-12-25 18:16:10 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI="8"
|
|
|
|
|
2022-11-22 22:38:13 +01:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2023-06-11 15:09:39 +02:00
|
|
|
PYTHON_COMPAT=( python3_{11..12} )
|
2023-03-02 23:14:05 +01:00
|
|
|
inherit distutils-r1 pypi
|
2021-12-25 18:16:10 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Library to read data from Mi Flora sensor"
|
|
|
|
HOMEPAGE="https://github.com/basnijholt/miflora https://pypi.org/project/miflora/"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
2022-12-31 16:18:00 +01:00
|
|
|
# Some(sic!) tests need nose which is getting cleaned from main tree.
|
|
|
|
RESTRICT="test"
|
2021-12-25 18:16:10 +01:00
|
|
|
|
|
|
|
DOCS="README.md"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
dev-python/bluepy[${PYTHON_USEDEP}]
|
|
|
|
dev-python/btlewrap[${PYTHON_USEDEP}]
|
|
|
|
"
|
|
|
|
BDEPEND="
|
|
|
|
${REDEPEND}
|
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i "s/packages=find_packages()/packages=find_packages(exclude=['test','test.*'])/g" setup.py || die
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
2022-11-22 22:38:13 +01:00
|
|
|
distutils_enable_tests pytest
|