diff options
Diffstat (limited to 'dev-python/httpbin')
| -rw-r--r-- | dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch | 2 | ||||
| -rw-r--r-- | dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch | 12 | ||||
| -rw-r--r-- | dev-python/httpbin/httpbin-0.7.0-r3.ebuild (renamed from dev-python/httpbin/httpbin-0.7.0-r2.ebuild) | 2 | ||||
| -rw-r--r-- | dev-python/httpbin/httpbin-0.7.0-r4.ebuild | 50 |
4 files changed, 64 insertions, 2 deletions
diff --git a/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch b/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch index f74474a70aa1..8031ad72de5b 100644 --- a/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch +++ b/dev-python/httpbin/files/httpbin-0.7.0-brotlicffi.patch @@ -35,7 +35,7 @@ index 7f9956b..8e17ef3 100644 install_requires=[ - 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy', + 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlicffi', - 'raven[flask]', 'werkzeug>=0.14.1' + 'werkzeug>=0.14.1' ], ) -- diff --git a/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch b/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch index 8602ed7641be..5d626768bd27 100644 --- a/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch +++ b/dev-python/httpbin/files/httpbin-0.7.0-optional-raven.patch @@ -17,3 +17,15 @@ diff -dupr a/httpbin/core.py b/httpbin/core.py sentry = Sentry(app, dsn=os.environ['SENTRY_DSN']) # Set up Bugsnag exception tracking, if desired. To use Bugsnag, install the +diff --git a/setup.py b/setup.py +index 7f9956b..3cab2ae 100644 +--- a/setup.py ++++ b/setup.py +@@ -35,6 +35,6 @@ setup( + include_package_data = True, # include files listed in MANIFEST.in + install_requires=[ + 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy', +- 'raven[flask]', 'werkzeug>=0.14.1' ++ 'werkzeug>=0.14.1' + ], + ) diff --git a/dev-python/httpbin/httpbin-0.7.0-r2.ebuild b/dev-python/httpbin/httpbin-0.7.0-r3.ebuild index 2c50b26a67da..5d5d905aeb15 100644 --- a/dev-python/httpbin/httpbin-0.7.0-r2.ebuild +++ b/dev-python/httpbin/httpbin-0.7.0-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/httpbin/httpbin-0.7.0-r4.ebuild b/dev-python/httpbin/httpbin-0.7.0-r4.ebuild new file mode 100644 index 000000000000..74965ce76e19 --- /dev/null +++ b/dev-python/httpbin/httpbin-0.7.0-r4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP Request and Response Service" +HOMEPAGE="https://github.com/postmanlabs/httpbin + https://pypi.org/project/httpbin/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +RDEPEND=" + dev-python/brotlicffi[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/itsdangerous[${PYTHON_USEDEP}] + dev-python/markupsafe[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/werkzeug-0.14.1[${PYTHON_USEDEP}]" + +PATCHES=( + # do not import raven if it's not going to be used + # (upstream removed it completely in git anyway) + "${FILESDIR}"/httpbin-0.7.0-optional-raven.patch + # fix tests with new versions of werkzeug + "${FILESDIR}"/httpbin-0.7.0-test-werkzeug.patch + # use brotlicffi instead of brotlipy + "${FILESDIR}"/httpbin-0.7.0-brotlicffi.patch +) + +distutils_enable_tests unittest + +src_prepare() { + # a new version of flask or whatever converts relative redirects + # to absolute; this package is dead anyway, so just skip + # the relevant tests + sed -e 's:test_redirect:_&:' \ + -e 's:test_relative:_&:' \ + -i test_httpbin.py || die + + distutils-r1_src_prepare +} |
