From 6549c50267c25fc0611d464b2252c3a369e03469 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Tue, 1 Dec 2020 12:32:54 +0100 Subject: [PATCH] net-misc/nbcli: New package Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Alarig Le Lay + + + + alarig@swordarmor.fr + Alarig Le Lay + + diff --git a/net-misc/nbcli/nbcli-0.6.3_alpha1.ebuild b/net-misc/nbcli/nbcli-0.6.3_alpha1.ebuild new file mode 100644 index 0000000..f8cc2b0 --- /dev/null +++ b/net-misc/nbcli/nbcli-0.6.3_alpha1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +inherit distutils-r1 + +MY_P="${P/_alpha/.dev}" + +DESCRIPTION="Extensible command-line interface for Netbox" +HOMEPAGE="https://github.com/ericgeldmacher/nbcli" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" +>=dev-python/pynetbox-5.0.3 +dev-python/pyyaml +" +RDEPEND="${DEPEND}" +BDEPEND="" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + if ! use test; then + rm -r "${S}/tests" + fi + + distutils-r1_python_prepare_all +}