From e2ad61264d08edac4347db2badba334058a097cf Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 20 Mar 2022 10:37:34 +0100 Subject: Release dev-python/etoolkit/etoolkit-1.1.0.ebuild --- dev-python/etoolkit/etoolkit-1.1.0.ebuild | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dev-python/etoolkit/etoolkit-1.1.0.ebuild (limited to 'dev-python/etoolkit/etoolkit-1.1.0.ebuild') diff --git a/dev-python/etoolkit/etoolkit-1.1.0.ebuild b/dev-python/etoolkit/etoolkit-1.1.0.ebuild new file mode 100644 index 0000000..ffef78a --- /dev/null +++ b/dev-python/etoolkit/etoolkit-1.1.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{7..10} ) + +inherit distutils-r1 + +DESCRIPTION="A simple toolkit for setting environment variables in a flexible way" +HOMEPAGE="https://github.com/blackm0re/etoolkit" +MY_PN="etoolkit" +MY_P="${MY_PN}-${PV}" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" +KEYWORDS="amd64 arm arm64 hppa ia64 ppc ppc64 riscv s390 x86" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/cryptography-3.2.0[${PYTHON_USEDEP}]" + +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + PYTHONPATH=${S}:${PYTHONPATH} \ + pytest -vv -s || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all +} -- cgit v1.3