HomeAssistantRepository/dev-python/ndms2-client/ndms2-client-0.1.2.ebuild
Andreas Billmeier (@Home/mbp) 3c893f5593
dev-python/ndms2-client: add 0.1.2
Signed-off-by: Andreas Billmeier <b@edevau.net>
2023-02-05 10:22:20 +01:00

35 lines
752 B
Bash

# 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
DESCRIPTION="Keenetic NDMS 2.x and 3.x client"
HOMEPAGE="https://github.com/foxel/python_ndms2_client https://pypi.org/project/ndms2-client/"
MY_PN=${PN/-/_}
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.md"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest