Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/argon2_cffi/
Date: Thu, 18 Oct 2018 19:48:25
Message-Id: 1539891593.119ea925432aa8fe439415d0f6cc07906d634cba.mgorny@gentoo
1 commit: 119ea925432aa8fe439415d0f6cc07906d634cba
2 Author: Michael Seifert <m.seifert <AT> digitalernachschub <DOT> de>
3 AuthorDate: Mon Oct 8 08:19:48 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 18 19:39:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119ea925
7
8 dev-python/argon2_cffi: New ebuild
9
10 Closes: https://bugs.gentoo.org/643904
11 Signed-off-by: Michael Seifert <m.seifert <AT> digitalernachschub.de>
12 Closes: https://github.com/gentoo/gentoo/pull/10104
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 dev-python/argon2_cffi/Manifest | 1 +
16 dev-python/argon2_cffi/argon2_cffi-18.3.0.ebuild | 51 ++++++++++++++++++++++++
17 dev-python/argon2_cffi/metadata.xml | 21 ++++++++++
18 3 files changed, 73 insertions(+)
19
20 diff --git a/dev-python/argon2_cffi/Manifest b/dev-python/argon2_cffi/Manifest
21 new file mode 100644
22 index 00000000000..c1d9e9785d0
23 --- /dev/null
24 +++ b/dev-python/argon2_cffi/Manifest
25 @@ -0,0 +1 @@
26 +DIST argon2_cffi-18.3.0.tar.gz 1806363 BLAKE2B b60711ac929792ccd87a948f213288d4d47f45bf4bb52a1f6ac698d229e0953e37186c4e7d140231c205777be2fe31982a808cc676c13f12fe8602381665b74c SHA512 482a97ca17a23e4c1f93a0642e5aab1f2556d10f8a24d74afd051e6b58533c4767465abbfe8f1d39c150c5dbb191ad138d08e70633721753c7d317dbaf1cb375
27
28 diff --git a/dev-python/argon2_cffi/argon2_cffi-18.3.0.ebuild b/dev-python/argon2_cffi/argon2_cffi-18.3.0.ebuild
29 new file mode 100644
30 index 00000000000..14c6988af3e
31 --- /dev/null
32 +++ b/dev-python/argon2_cffi/argon2_cffi-18.3.0.ebuild
33 @@ -0,0 +1,51 @@
34 +# Copyright 1999-2018 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} pypy pypy3 )
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="CFFI bindings to the Argon2 password hashing library"
43 +HOMEPAGE="https://github.com/hynek/argon2_cffi"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="doc test"
50 +
51 +COMMON_DEPEND="
52 + ~app-crypt/argon2-20171227:=
53 + dev-python/six[${PYTHON_USEDEP}]
54 + virtual/python-cffi[${PYTHON_USEDEP}]
55 + virtual/python-enum34[${PYTHON_USEDEP}]
56 +"
57 +RDEPEND="${COMMON_DEPEND}"
58 +DEPEND="${COMMON_DEPEND}
59 + dev-python/setuptools[${PYTHON_USEDEP}]
60 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
61 + test? (
62 + dev-python/hypothesis[${PYTHON_USEDEP}]
63 + >=dev-python/pytest-3.0[${PYTHON_USEDEP}]
64 + )
65 +"
66 +
67 +DOCS=( AUTHORS.rst CHANGELOG.rst FAQ.rst README.rst )
68 +
69 +python_configure_all() {
70 + export ARGON2_CFFI_USE_SYSTEM=1
71 +}
72 +
73 +python_compile_all() {
74 + use doc && emake -C docs html
75 +}
76 +
77 +python_test() {
78 + pytest -vv || die "Tests failed with ${EPYTHON}"
79 +}
80 +
81 +python_install_all() {
82 + use doc && local HTML_DOCS=( docs/_build/html/. )
83 + distutils-r1_python_install_all
84 +}
85
86 diff --git a/dev-python/argon2_cffi/metadata.xml b/dev-python/argon2_cffi/metadata.xml
87 new file mode 100644
88 index 00000000000..3404c181dec
89 --- /dev/null
90 +++ b/dev-python/argon2_cffi/metadata.xml
91 @@ -0,0 +1,21 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 +<pkgmetadata>
95 + <maintainer type="person">
96 + <email>m.seifert@××××××××××××××××××.de</email>
97 + <name>Michael Seifert</name>
98 + </maintainer>
99 + <maintainer type="project">
100 + <email>python@g.o</email>
101 + <name>Python</name>
102 + </maintainer>
103 + <maintainer type="project">
104 + <email>proxy-maint@g.o</email>
105 + <name>Proxy Maintainers</name>
106 + </maintainer>
107 + <longdescription>CFFI bindings for the Argon2 password hashing library.</longdescription>
108 + <upstream>
109 + <remote-id type="pypi">argon2_cffi</remote-id>
110 + <remote-id type="github">hynek/argon2_cffi</remote-id>
111 + </upstream>
112 +</pkgmetadata>