diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-httpbin/0001-Use-Brotli-instead-of-brotlipy.patch | 27 | ||||
-rw-r--r-- | testing/py3-httpbin/APKBUILD | 29 |
2 files changed, 56 insertions, 0 deletions
diff --git a/testing/py3-httpbin/0001-Use-Brotli-instead-of-brotlipy.patch b/testing/py3-httpbin/0001-Use-Brotli-instead-of-brotlipy.patch new file mode 100644 index 0000000000..a434026109 --- /dev/null +++ b/testing/py3-httpbin/0001-Use-Brotli-instead-of-brotlipy.patch @@ -0,0 +1,27 @@ +From 7f1583ac861b74234f86a4098768ed6b04e2b99d Mon Sep 17 00:00:00 2001 +From: Felix Yan <felixonmars@archlinux.org> +Date: Mon, 27 May 2019 16:02:01 +0800 +Subject: [PATCH] Use Brotli instead of brotlipy + +brotlipy is stuck at brotli 0.6 and upstream is inactive. Let's switch +to the official binding which is up-to-date and has same interfaces. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index afbef58..a25ce45 100644 +--- a/setup.py ++++ b/setup.py +@@ -35,7 +35,7 @@ setup( + packages=find_packages(), + include_package_data = True, # include files listed in MANIFEST.in + install_requires=[ +- 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy', ++ 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'Brotli', + 'raven[flask]', 'werkzeug>=0.14.1' + ], + ) +-- +2.23.0 + diff --git a/testing/py3-httpbin/APKBUILD b/testing/py3-httpbin/APKBUILD new file mode 100644 index 0000000000..88342d7e54 --- /dev/null +++ b/testing/py3-httpbin/APKBUILD @@ -0,0 +1,29 @@ +# Maintainer: Luca Weiss <luca@z3ntu.xyz> +pkgname=py3-httpbin +_pyname=httpbin +pkgver=0.7.0 +pkgrel=0 +pkgdesc="HTTP Request and Response Service" +url=https://github.com/postmanlabs/httpbin +arch="noarch" +license="ISC" +depends="py3-flask py3-six py3-raven py3-blinker py3-brotli py3-decorator" +makedepends="py3-setuptools" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz + 0001-Use-Brotli-instead-of-brotlipy.patch" +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py test +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} +sha512sums="82e80058b58943637e9f8191764cea79bf7a6e40f36069f9b5d3f908585dbef20a03ef070d1f865d350920b6e874a93a48a544b05c14ff4911038ec2c20f6f63 httpbin-0.7.0.tar.gz +b39fdb02b642afab12aca14fe45e34af32cafb04c612e0be9b72ea5f4451c7d1ed412199dcbefcfc08cdf6699f61f177a49e9352965cadf2f65771922d73e61a 0001-Use-Brotli-instead-of-brotlipy.patch" |