From 406221dc8d42a6beda5aca96dd7d668751e53635 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 8 Apr 2020 21:19:40 +0200 Subject: Initial release based on sgs' private overlay --- dev-python/pyotp2289/pyotp2289-1.0.0.ebuild | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 dev-python/pyotp2289/pyotp2289-1.0.0.ebuild (limited to 'dev-python/pyotp2289/pyotp2289-1.0.0.ebuild') diff --git a/dev-python/pyotp2289/pyotp2289-1.0.0.ebuild b/dev-python/pyotp2289/pyotp2289-1.0.0.ebuild new file mode 100644 index 0000000..7afcc97 --- /dev/null +++ b/dev-python/pyotp2289/pyotp2289-1.0.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="A pure Python 3 implementation of RFC-2289 - 'A One-Time Password System'" +HOMEPAGE="https://github.com/blackm0re/pyotp2289" +MY_PN="pyotp2289" +MY_P="${MY_PN}-${PV}" +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" +KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + PYTHONPATH=${S}:${PYTHONPATH} \ + pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all +} -- cgit v1.3