summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno <hanno@gentoo.org>2018-03-21 15:05:59 +0100
committerHanno <hanno@gentoo.org>2018-03-21 15:05:59 +0100
commitbd01a4a2de563660bddac850e0b677fa85b9e196 (patch)
treebc118680ddd2d607f9ac699728d8aadf3535d601 /dev-python/python-recaptcha
parentnet-dialup/accel-ppp: drop old version (diff)
downloadgentoo-bd01a4a2de563660bddac850e0b677fa85b9e196.tar.gz
gentoo-bd01a4a2de563660bddac850e0b677fa85b9e196.tar.bz2
gentoo-bd01a4a2de563660bddac850e0b677fa85b9e196.zip
dev-python/python-recaptcha: Initial commit.
Fork of dev-python/recaptcha-client supporting recaptcha v2. Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-python/python-recaptcha')
-rw-r--r--dev-python/python-recaptcha/Manifest1
-rw-r--r--dev-python/python-recaptcha/metadata.xml14
-rw-r--r--dev-python/python-recaptcha/python-recaptcha-2.0.0.ebuild27
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/python-recaptcha/Manifest b/dev-python/python-recaptcha/Manifest
new file mode 100644
index 000000000000..97c36aff4afe
--- /dev/null
+++ b/dev-python/python-recaptcha/Manifest
@@ -0,0 +1 @@
+DIST python-recaptcha-2.0.0.tar.gz 5556 BLAKE2B b752915eb95343d7cbce483f49ce9d93ecf837c85a1615e414e14226c54dc60ede3187bd127e09769106a7eb06156ab2b73b0a3839743c29b6aba6e6c4d96951 SHA512 3a60062f36833888a110d5979ca7a7f46cef927bfcf427aba72d2f6a99a9c401b20bea997ff8fb2b8435876bed3880371a84568b95da1341940d275cba8ff178
diff --git a/dev-python/python-recaptcha/metadata.xml b/dev-python/python-recaptcha/metadata.xml
new file mode 100644
index 000000000000..97e2d6ed858e
--- /dev/null
+++ b/dev-python/python-recaptcha/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hanno@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">redhat-infosec/python-recaptcha</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/python-recaptcha/python-recaptcha-2.0.0.ebuild b/dev-python/python-recaptcha/python-recaptcha-2.0.0.ebuild
new file mode 100644
index 000000000000..e77a89547183
--- /dev/null
+++ b/dev-python/python-recaptcha/python-recaptcha-2.0.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A plugin for reCAPTCHA and reCAPTCHA Mailhide"
+HOMEPAGE="https://github.com/redhat-infosec/python-recaptcha"
+SRC_URI="https://github.com/redhat-infosec/python-recaptcha/releases/download/v${PV}/${P}.tar.gz"
+KEYWORDS="~amd64"
+
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="dev-python/pycrypto[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+ !dev-python/recaptcha-client"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_install() {
+ distutils-r1_python_install
+ # otherwise we have an empty recaptcha dir/namespace
+ touch "${D}$(python_get_sitedir)"/recaptcha/__init__.py
+}