Various updates and additions

This commit is contained in:
layman
2018-08-10 16:13:33 +02:00
parent 1d13f81020
commit a0fdce9f18
14 changed files with 878 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
DIST Flask-Security-3.0.0.tar.gz 160367 BLAKE2B c2e1449dc2807c2c40519fa3afb894157e17ecc9ff3f6dcf5ef0d02839a5988f827afd26c1d31af86d5e240e0ea8bfb8ed86354bb6a83535436b08721cac8f26 SHA512 09b94f0850372513add5c054c07aa465ecb95e8d1c414647e3ebee571ec08c94a29f0c138d092c02a55e242c422bc53f929ca066d671c082dcb29834ac753984
EBUILD flask-security-3.0.0.ebuild 1382 BLAKE2B fe05660f00e6b25547661792951278b5bd3a6e9a15742674a4684caf853f8dcad4a31b009880e2dea8e9f97a68f56121b0d57bf1935ab197d058f43819df2001 SHA512 5cb6470b5dc376236a62652ed7695fb327362a8607ce9182e1c50e196f2ee34f30348eec497dd36688e4abb6f9ff575eb2456ddaa8e8fc79a468f3ebc8817282
MISC metadata.xml 317 BLAKE2B 4889668ab37b857d0e46000d1663eb953b8f54b20e9ea16979d9db73b6d96b3fa8317bbb5cb10d9e4b4cf0268b966531e33b1bc4a9ab9758768120466999e9cd SHA512 4e5d572e3b4c865bd75763af3bf90a1aeae9a74865ed3da3aa8d00956158cf842a7fb8f2ec837bd53fda5e2a3266777c41bc109d64f31fe75a5d219f1dba1ed2
@@ -0,0 +1,46 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5} )
inherit distutils-r1
MY_PN="Flask-Security"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Simple security for Flask apps"
HOMEPAGE="http://pythonhosted.org/Flask-Security/ https://pypi.python.org/pypi/Flask-Security"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
# tests are foobar
RESTRICT="test"
RDEPEND=">=dev-python/flask-0.11[${PYTHON_USEDEP}]
>=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}]
>=dev-python/passlib-1.7[${PYTHON_USEDEP}]
>=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}]
>=dev-python/flask-login-0.3.0[${PYTHON_USEDEP}]
>=dev-python/flask-mail-0.7.3[${PYTHON_USEDEP}]
>=dev-python/flask-wtf-0.13.1[${PYTHON_USEDEP}]
>=dev-python/flask-principal-0.3.3[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
dev-python/flask-mongoengine[${PYTHON_USEDEP}]
dev-python/bcrypt[${PYTHON_USEDEP}]
dev-python/simplejson[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/flask-peewee[${PYTHON_USEDEP}]' 'python2*')
)"
S="${WORKDIR}/${MY_P}"
python_test() {
nosetests -v || die "Testing failed with ${EPYTHON}"
}
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="pypi">Flask-Security</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,77 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
PYTHON_REQ_USE="sqlite?"
inherit distutils-r1 eutils flag-o-matic
MY_PN="SQLAlchemy"
MY_P="${MY_PN}-${PV/_beta/b}"
DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
IUSE="doc examples +sqlite test"
REQUIRED_USE="test? ( sqlite )"
RDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="
${RDEPEND}
test? (
<dev-python/pluggy-0.7s[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
)"
S="${WORKDIR}/${MY_P}"
python_prepare_all() {
# Disable tests hardcoding function call counts specific to Python versions.
rm -r test/aaa_profiling || die
distutils-r1_python_prepare_all
}
python_compile() {
if ! python_is_python3; then
local CFLAGS=${CFLAGS}
append-cflags -fno-strict-aliasing
fi
distutils-r1_python_compile
}
python_test() {
# Create copies of necessary files in BUILD_DIR.
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
pushd "${BUILD_DIR}" > /dev/null || die
if [[ "${EPYTHON}" == "python3.2" ]]; then
2to3 --no-diffs -w test || die
fi
# Recently upstream elected to make the testsuite also pytest capable
# "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
py.test --verbose test || die "Testsuite failed under ${EPYTHON}"
popd > /dev/null
}
python_install_all() {
use doc && HTML_DOCS=( doc/. )
use examples && dodoc -r examples
distutils-r1_python_install_all
}
pkg_postinst() {
optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python
optfeature "mssql support" dev-python/pymssql
optfeature "postgresql support" dev-python/psycopg:2
}