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
This commit is contained in:
Hanno
2018-03-21 15:05:59 +01:00
parent ca9b3fd26b
commit bd01a4a2de
3 changed files with 42 additions and 0 deletions

View File

@@ -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
}