dev-python/nettigo-air-monitor: add 2.1.0

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
2023-03-01 19:49:51 +01:00
committed by Andreas Billmeier
parent 916d1a7d8d
commit 3c92c3cf77
3 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="Python wrapper for getting air quality data from Nettigo Air Monitor devices."
HOMEPAGE="https://github.com/bieniu/nettigo-air-monitor https://pypi.org/project/nettigo-air-monitor/"
SRC_URI="$(pypi_sdist_url)"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.md"
RDEPEND="dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/dacite[${PYTHON_USEDEP}]
dev-python/aqipy-atmotech[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/pytest-runner[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest