diff options
| author | Simeon Simeonov | 2020-12-14 19:27:31 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2020-12-14 19:27:31 +0100 |
| commit | e00a7f57d84b7f0cec64b63c8f3ca6081a0df617 (patch) | |
| tree | b2ba3d6fd5d81eb8652f21e2579a8e98024dcaa8 /dev-python/pyotp2289/pyotp2289-1.0.0-r1.ebuild | |
| parent | 70215a06420e0830bdbf315c3af48010f34e40d2 (diff) | |
dev-python/pyotp2289/pyotp2289-1.0.0 -> dev-python/pyotp2289/pyotp2289-1.0.0-r1
Diffstat (limited to 'dev-python/pyotp2289/pyotp2289-1.0.0-r1.ebuild')
| -rw-r--r-- | dev-python/pyotp2289/pyotp2289-1.0.0-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/pyotp2289/pyotp2289-1.0.0-r1.ebuild b/dev-python/pyotp2289/pyotp2289-1.0.0-r1.ebuild new file mode 100644 index 0000000..d05009f --- /dev/null +++ b/dev-python/pyotp2289/pyotp2289-1.0.0-r1.ebuild | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # Copyright 1999-2020 Gentoo Authors | ||
| 2 | # Distributed under the terms of the GNU General Public License v2 | ||
| 3 | |||
| 4 | EAPI=7 | ||
| 5 | |||
| 6 | DISTUTILS_USE_SETUPTOOLS=rdepend | ||
| 7 | PYTHON_COMPAT=( python3_{6,7,8,9} ) | ||
| 8 | |||
| 9 | inherit distutils-r1 | ||
| 10 | |||
| 11 | DESCRIPTION="A pure Python 3 implementation of RFC-2289 - 'A One-Time Password System'" | ||
| 12 | HOMEPAGE="https://github.com/blackm0re/pyotp2289" | ||
| 13 | MY_PN="pyotp2289" | ||
| 14 | MY_P="${MY_PN}-${PV}" | ||
| 15 | SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" | ||
| 16 | KEYWORDS="amd64 arm ~arm64 ppc ppc64 x86 ~amd64-linux ~x86-linux" | ||
| 17 | S="${WORKDIR}/${MY_P}" | ||
| 18 | |||
| 19 | LICENSE="BSD" | ||
| 20 | SLOT="0" | ||
| 21 | IUSE="test" | ||
| 22 | RESTRICT="!test? ( test )" | ||
| 23 | |||
| 24 | DEPEND=" | ||
| 25 | dev-python/setuptools[${PYTHON_USEDEP}] | ||
| 26 | test? ( | ||
| 27 | ${RDEPEND} | ||
| 28 | dev-python/pytest[${PYTHON_USEDEP}] | ||
| 29 | )" | ||
| 30 | |||
| 31 | python_test() { | ||
| 32 | PYTHONPATH=${S}:${PYTHONPATH} \ | ||
| 33 | pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}" | ||
| 34 | } | ||
| 35 | |||
| 36 | python_install_all() { | ||
| 37 | distutils-r1_python_install_all | ||
| 38 | } | ||
