2022-07-04 16:38:54 +02:00
|
|
|
# Copyright 2020-2022 Gentoo Authors
|
2020-12-01 12:20:56 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2022-07-04 16:38:54 +02:00
|
|
|
PYTHON_COMPAT=( python3_{6..10} )
|
2020-12-01 12:20:56 +01:00
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Python API client library for NetBox"
|
|
|
|
HOMEPAGE="https://github.com/digitalocean/pynetbox"
|
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
|
|
|
|
DEPEND="
|
2021-06-21 13:50:24 +02:00
|
|
|
>=dev-python/requests-2.20.0
|
|
|
|
<dev-python/requests-3.0
|
|
|
|
dev-python/six
|
2020-12-01 12:20:56 +01:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND=""
|
|
|
|
|
|
|
|
distutils_enable_tests unittest
|
|
|
|
|
|
|
|
python_prepare_all() {
|
|
|
|
if ! use test; then
|
|
|
|
rm -r "${S}/tests"
|
|
|
|
fi
|
|
|
|
|
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|