summaryrefslogtreecommitdiff
path: root/dev-python/python-openid
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/python-openid
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-openid')
-rw-r--r--dev-python/python-openid/Manifest7
-rw-r--r--dev-python/python-openid/files/python-openid-2.0.0-gentoo-test_fetchers.diff11
-rw-r--r--dev-python/python-openid/files/python-openid-2.2.5-tests.patch10
-rw-r--r--dev-python/python-openid/metadata.xml8
-rw-r--r--dev-python/python-openid/python-openid-2.2.5-r1.ebuild57
5 files changed, 93 insertions, 0 deletions
diff --git a/dev-python/python-openid/Manifest b/dev-python/python-openid/Manifest
new file mode 100644
index 000000000000..f67dd81b0352
--- /dev/null
+++ b/dev-python/python-openid/Manifest
@@ -0,0 +1,7 @@
+AUX python-openid-2.0.0-gentoo-test_fetchers.diff 566 SHA256 f1628b4743a74cc5bc354531bb58888498d1d46ec802ee5b26f1761356912908 SHA512 60cb8b12312b3727263808647dd592e295ead7cebb384f92a33afe71292267e0ab95196dfdb7a01ac8847c0565c5dc9ad81f3cb95c00d6e4c9d816941b71fa44 WHIRLPOOL 890e07e57bd913dc47d6b1d7ecee65454348dd7dc310a15bea6f0211066a8428da22f7a4fcf15e4d61ecb79ef550c8dadff8bd01bf900e3bf6bc9a945c9ece21
+AUX python-openid-2.2.5-tests.patch 321 SHA256 d1a35aa30acdda3b2934a1733df36f17e432c21a1fbbcd04e804b736b6a5dce7 SHA512 2d0e65763ee5fa4325e03e524ce179c367a1ba3119ce55bec458ed37bee05bb655c6a4dbc0d57ad4c20ebe22246b87da458cc688eed7d10f2cd1003f0da3f70a WHIRLPOOL b3d44aafb2e89c5d2b51ff5266cff54f75c7868cfbcc04ff986cb5cf14c9b399014bbca6132183e107e00d704a72112b63a9d4af3dedb3783bc2d72dd4f7631f
+DIST python-openid-2.2.5.tar.gz 300524 SHA256 cb518b0804ccfa859d143753d33f49204c7d994cb08d1a2736fb841a1e7722e3 SHA512 46ffeb07dc0e94c6e1160c824dfafd4a125746a05af1541e112bc2691bf655f75d0431ea273877899abc2956bb1f82369dea75d9b54282f33875f333f5166e7a WHIRLPOOL 6f53aacde4eef9d18b617d57bfad149c77aa6db6c1aa3e6b4421ee89a920ce9bad76f3b5ca14654719cc9ac297827e21a19685ab6a2ce717c03d5de855eecf16
+EBUILD python-openid-2.2.5-r1.ebuild 1552 SHA256 4ef97928ff353c2c37f166edcf16ef7a79877cb4d36e239a7c0bda5054ae9869 SHA512 eb33263c2b6185f8afbbc9e4d5232dd4018d9c5e79da7889135c83766708de3c3fc4f068b43e22a8ff9c377465c02d6c01ea3d2642c576f6c4c52f9fab24a9e2 WHIRLPOOL 94e78bf7ff9df053c21b06e5150b2a45e41acaa38ae5d43d5a87a70760035cccb2d2cff52442b923308cc096dec571a34004359a371dc6990c99e63b7dccb89c
+MISC ChangeLog 2925 SHA256 34b99873d768ea6fd961e2cf34d33be9cb504f902c59de23205bd523a9e8297a SHA512 048e70500b8f3ce311591a2929d753e9da59810a9f3bd26787bc05e9f7953bbfe29dde0bb288499c573bb1b63627b8c2e641a70aff1a5d5b5dd43f091f8c03bd WHIRLPOOL 612da413c2e977a066c33edb70fb0bf989acf48ba477a0a5182d4be8460c2bca2d92fb0cdf2d7d916cd9bfe61a43f00e968af802e854c11bffae0d97abb826e1
+MISC ChangeLog-2015 4930 SHA256 4df9b45cd5ea214508dcb9e322bd7d0108ceda1c6f9eb41adffb4b636da9ffa0 SHA512 92e3da3f8f919ae664c7824d7e9b97389cf2ab11995bd48759933b44af39b94827a07033263cd09ddf3374d63afc8db1382788adf6f9c69c7f59240ae5b702da WHIRLPOOL 611f5e64eb79bcf56abe99523f0566225cd8d39fa2bd938032f872bef19d7171a18de130ca6da478976b9a8774cd35ff0e350aa9cdf9feab2c989dc5d4cc91b2
+MISC metadata.xml 236 SHA256 4709fa7f17a11d5eae6dd884b488d3c6eb8f85e9b63fe3684b4f234d3b9b14a9 SHA512 0f2c2a0401b53543eac90eafdd4d11c5913be07f47b968e2892ca92c265adbd9564f02a491ff2607d7031194ba3e50c7720851537341b1541120821c487147a3 WHIRLPOOL d73790bb41c2cefb5e2f7b163fc95a79b9674d9808ca34cef58fbc8c5a765023a0be285508a2e7f5f70eadc5725cf8d63553d599e4b367f52fac3374de347abb
diff --git a/dev-python/python-openid/files/python-openid-2.0.0-gentoo-test_fetchers.diff b/dev-python/python-openid/files/python-openid-2.0.0-gentoo-test_fetchers.diff
new file mode 100644
index 000000000000..67587a98533a
--- /dev/null
+++ b/dev-python/python-openid/files/python-openid-2.0.0-gentoo-test_fetchers.diff
@@ -0,0 +1,11 @@
+--- openid/test/test_fetchers.py.orig 2007-06-07 15:53:38.000000000 -0700
++++ openid/test/test_fetchers.py 2007-06-07 15:53:55.000000000 -0700
+@@ -8,6 +8,8 @@
+ # XXX: make these separate test cases
+
+ def failUnlessResponseExpected(expected, actual):
++ expected.final_url = expected.final_url.replace("localhost", "127.0.0.1")
++ actual.final_url = actual.final_url.replace("localhost", "127.0.0.1")
+ assert expected.final_url == actual.final_url, (
+ "%r != %r" % (expected.final_url, actual.final_url))
+ assert expected.status == actual.status
diff --git a/dev-python/python-openid/files/python-openid-2.2.5-tests.patch b/dev-python/python-openid/files/python-openid-2.2.5-tests.patch
new file mode 100644
index 000000000000..e5d17463ac95
--- /dev/null
+++ b/dev-python/python-openid/files/python-openid-2.2.5-tests.patch
@@ -0,0 +1,10 @@
+--- admin/runtests.orig 2016-01-01 03:32:55.835000000 +0000
++++ admin/runtests 2016-01-01 03:32:59.163000000 +0000
+@@ -93,7 +93,6 @@
+ 'test_htmldiscover',
+ 'test_nonce',
+ 'test_openidyadis',
+- 'test_parsehtml',
+ 'test_urinorm',
+ 'test_yadis_discover',
+ 'trustroot',
diff --git a/dev-python/python-openid/metadata.xml b/dev-python/python-openid/metadata.xml
new file mode 100644
index 000000000000..9e5274c5b4ae
--- /dev/null
+++ b/dev-python/python-openid/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/dev-python/python-openid/python-openid-2.2.5-r1.ebuild b/dev-python/python-openid/python-openid-2.2.5-r1.ebuild
new file mode 100644
index 000000000000..b6a1cbf1d8e8
--- /dev/null
+++ b/dev-python/python-openid/python-openid-2.2.5-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_REQ_USE='sqlite?'
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="OpenID support for servers and consumers"
+HOMEPAGE="http://www.openidenabled.com/openid/libraries/python/ https://pypi.python.org/pypi/python-openid"
+# Downloaded from https://github.com/openid/python-openid/downloads
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
+IUSE="examples mysql postgres sqlite test"
+
+RDEPEND="mysql? ( >=dev-python/mysql-python-1.2.2[${PYTHON_USEDEP}] )
+ postgres? ( dev-python/psycopg[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ test? ( dev-python/twill
+ dev-python/pycurl )"
+S="${WORKDIR}/openid-python-openid-b666238"
+
+python_prepare_all() {
+ local PATCHES=(
+ # Patch to fix confusion with localhost/127.0.0.1
+ "${FILESDIR}/${PN}-2.0.0-gentoo-test_fetchers.diff"
+ "${FILESDIR}"/"${P}-tests.patch"
+ )
+
+ # Disable broken tests from from examples/djopenid.
+ # Remove test that requires running db server.
+ sed -e "s/django_failures =.*/django_failures = 0/" \
+ -e '/storetest/d' \
+ -i admin/runtests || die "sed admin/runtests failed"
+
+ rm -v openid/test/test_parsehtml.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ "${PYTHON}" admin/runtests || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}