diff options
| author | Simeon Simeonov | 2020-04-08 21:19:40 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2020-04-08 21:19:40 +0200 |
| commit | 406221dc8d42a6beda5aca96dd7d668751e53635 (patch) | |
| tree | 8beef75bc0b0ffe9e2b86abd631d3a9837833b56 /dev-python | |
Initial release based on sgs' private overlay
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pyotp2289/Manifest | 3 | ||||
| -rw-r--r-- | dev-python/pyotp2289/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-python/pyotp2289/pyotp2289-1.0.0.ebuild | 38 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/pyotp2289/Manifest b/dev-python/pyotp2289/Manifest new file mode 100644 index 0000000..449494b --- /dev/null +++ b/dev-python/pyotp2289/Manifest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | DIST pyotp2289-1.0.0.tar.gz 30245 BLAKE2B be873220aa5d377b52088559291110fea227c6b0ffee45b6526fd72be3c4b0785186bf96817245639b6d79c03d4e2a0e653059b5b214ff0834cf68787de693de SHA512 1c73fcdfcdecc2db11e598601c8a5f962a571c2aaa0287299df78f189c6512ffe8cfeac0b65ef402f1def69d6e12a82195a2f6851d1379e6fec4e5320f0914e6 | ||
| 2 | EBUILD pyotp2289-1.0.0.ebuild 886 BLAKE2B 6d7df8b81556dc208d790d627826692914de65725a72f61cbc5eae05fd92f3a8b5a8d524de0256a043a0bd916cb923542d30f350ee66114c8760060decb9c52a SHA512 47414bfcfcae01d24b84397b70ecebe6b393a857b425eb554d16e4cb1afd5cdc655ff2263a05001a11f61ab6ae09e521dd08e7abc934d1d206c9acc2f3d34b69 | ||
| 3 | MISC metadata.xml 402 BLAKE2B 3169f6b02fb30ba6db5edd85532a4caf08670e44e27a9b690063549b5561a765e8d2a4b3cd129d196827e2d51e97b7e6da04347c07387cd25aec2792516b89a5 SHA512 2268e0dd77a8771835d0cd97ec124fd47d51a5ceec7f5c21baf62979e021c0aa38aa506740147b9fde97f9af3094f8e4635424043fe06d5db2ddf45398912928 | ||
diff --git a/dev-python/pyotp2289/metadata.xml b/dev-python/pyotp2289/metadata.xml new file mode 100644 index 0000000..bc26e88 --- /dev/null +++ b/dev-python/pyotp2289/metadata.xml | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
| 3 | <pkgmetadata> | ||
| 4 | <maintainer type="project"> | ||
| 5 | <email>sgs@pichove.org</email> | ||
| 6 | <name>Simeon Simeonov</name> | ||
| 7 | </maintainer> | ||
| 8 | <stabilize-allarches/> | ||
| 9 | <upstream> | ||
| 10 | <remote-id type="pypi">pyotp2289</remote-id> | ||
| 11 | <remote-id type="github">blackm0re/pyotp2289</remote-id> | ||
| 12 | </upstream> | ||
| 13 | </pkgmetadata> | ||
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 @@ | |||
| 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} ) | ||
| 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 | } | ||
