Gentoo Archives: gentoo-commits

From: Hanno Boeck <hanno@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-recaptcha/
Date: Wed, 21 Mar 2018 14:06:21
Message-Id: 1521641159.bd01a4a2de563660bddac850e0b677fa85b9e196.hanno@gentoo
1 commit: bd01a4a2de563660bddac850e0b677fa85b9e196
2 Author: Hanno <hanno <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 21 14:05:59 2018 +0000
4 Commit: Hanno Boeck <hanno <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 21 14:05:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd01a4a2
7
8 dev-python/python-recaptcha: Initial commit.
9
10 Fork of dev-python/recaptcha-client supporting recaptcha v2.
11
12 Package-Manager: Portage-2.3.24, Repoman-2.3.6
13
14 dev-python/python-recaptcha/Manifest | 1 +
15 dev-python/python-recaptcha/metadata.xml | 14 +++++++++++
16 .../python-recaptcha/python-recaptcha-2.0.0.ebuild | 27 ++++++++++++++++++++++
17 3 files changed, 42 insertions(+)
18
19 diff --git a/dev-python/python-recaptcha/Manifest b/dev-python/python-recaptcha/Manifest
20 new file mode 100644
21 index 00000000000..97c36aff4af
22 --- /dev/null
23 +++ b/dev-python/python-recaptcha/Manifest
24 @@ -0,0 +1 @@
25 +DIST python-recaptcha-2.0.0.tar.gz 5556 BLAKE2B b752915eb95343d7cbce483f49ce9d93ecf837c85a1615e414e14226c54dc60ede3187bd127e09769106a7eb06156ab2b73b0a3839743c29b6aba6e6c4d96951 SHA512 3a60062f36833888a110d5979ca7a7f46cef927bfcf427aba72d2f6a99a9c401b20bea997ff8fb2b8435876bed3880371a84568b95da1341940d275cba8ff178
26
27 diff --git a/dev-python/python-recaptcha/metadata.xml b/dev-python/python-recaptcha/metadata.xml
28 new file mode 100644
29 index 00000000000..97e2d6ed858
30 --- /dev/null
31 +++ b/dev-python/python-recaptcha/metadata.xml
32 @@ -0,0 +1,14 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>hanno@g.o</email>
38 + </maintainer>
39 + <maintainer type="project">
40 + <email>python@g.o</email>
41 + <name>Python</name>
42 + </maintainer>
43 + <upstream>
44 + <remote-id type="github">redhat-infosec/python-recaptcha</remote-id>
45 + </upstream>
46 +</pkgmetadata>
47
48 diff --git a/dev-python/python-recaptcha/python-recaptcha-2.0.0.ebuild b/dev-python/python-recaptcha/python-recaptcha-2.0.0.ebuild
49 new file mode 100644
50 index 00000000000..e77a8954718
51 --- /dev/null
52 +++ b/dev-python/python-recaptcha/python-recaptcha-2.0.0.ebuild
53 @@ -0,0 +1,27 @@
54 +# Copyright 1999-2018 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=6
58 +PYTHON_COMPAT=( python2_7 )
59 +
60 +inherit distutils-r1
61 +
62 +DESCRIPTION="A plugin for reCAPTCHA and reCAPTCHA Mailhide"
63 +HOMEPAGE="https://github.com/redhat-infosec/python-recaptcha"
64 +SRC_URI="https://github.com/redhat-infosec/python-recaptcha/releases/download/v${PV}/${P}.tar.gz"
65 +KEYWORDS="~amd64"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +
70 +RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]
71 + dev-python/simplejson[${PYTHON_USEDEP}]
72 + !dev-python/recaptcha-client"
73 +DEPEND="${RDEPEND}
74 + dev-python/setuptools[${PYTHON_USEDEP}]"
75 +
76 +python_install() {
77 + distutils-r1_python_install
78 + # otherwise we have an empty recaptcha dir/namespace
79 + touch "${D}$(python_get_sitedir)"/recaptcha/__init__.py
80 +}