diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/python-openid | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/python-openid')
5 files changed, 89 insertions, 0 deletions
diff --git a/dev-python/python-openid/Manifest b/dev-python/python-openid/Manifest new file mode 100644 index 000000000000..3bfe44818995 --- /dev/null +++ b/dev-python/python-openid/Manifest @@ -0,0 +1 @@ +DIST python-openid-2.2.5.tar.gz 300524 BLAKE2B 9431ba3947dd2d2f7717e3f64ae91e4c014b85d67e6ce9daff5541d107c35869863de79273e6f9ad433193324d44821ccf9aaf885a6541ff7a3636a31c6ee8f5 SHA512 46ffeb07dc0e94c6e1160c824dfafd4a125746a05af1541e112bc2691bf655f75d0431ea273877899abc2956bb1f82369dea75d9b54282f33875f333f5166e7a 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..ad7081983829 --- /dev/null +++ b/dev-python/python-openid/metadata.xml @@ -0,0 +1,9 @@ +<?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> + <origin>gentoo-staging</origin> +</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..7eb9873c89f4 --- /dev/null +++ b/dev-python/python-openid/python-openid-2.2.5-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# 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.org/project/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="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 s390 sparc 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}" +S="${WORKDIR}/openid-python-openid-b666238" + +# Tests depend on twill, a broken package. Bug #285169 +RESTRICT="test" + +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 +} |
