summaryrefslogtreecommitdiff
path: root/httpbin
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2022-03-27 19:11:13 +0200
committerTim Biermann <tbier@posteo.de>2022-03-27 19:11:13 +0200
commite09d5c445076a448a79faac8cd70d95c021c6c37 (patch)
tree684dd5c1880f93f2a99acc80bee7c9b8a3f319f9 /httpbin
parent9b9bb62f19eccd2cff4c5bef1f26a621e9c8a272 (diff)
downloadcontrib-e09d5c445076a448a79faac8cd70d95c021c6c37.tar.gz
contrib-e09d5c445076a448a79faac8cd70d95c021c6c37.tar.xz
httpbin: -> 0.7.0
Diffstat (limited to 'httpbin')
-rw-r--r--httpbin/.footprint43
-rw-r--r--httpbin/.signature6
-rw-r--r--httpbin/Pkgfile23
-rw-r--r--httpbin/httpbin-werkzeug-0.15.1.patch34
4 files changed, 106 insertions, 0 deletions
diff --git a/httpbin/.footprint b/httpbin/.footprint
new file mode 100644
index 000000000..aededb5f8
--- /dev/null
+++ b/httpbin/.footprint
@@ -0,0 +1,43 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/python3.9/
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/httpbin-0.7.0-py3.9.egg-info/
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin-0.7.0-py3.9.egg-info/PKG-INFO
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin-0.7.0-py3.9.egg-info/SOURCES.txt
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin-0.7.0-py3.9.egg-info/dependency_links.txt
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin-0.7.0-py3.9.egg-info/requires.txt
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin-0.7.0-py3.9.egg-info/top_level.txt
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/httpbin/
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__init__.py
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/__init__.cpython-39.opt-1.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/__init__.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/core.cpython-39.opt-1.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/core.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/filters.cpython-39.opt-1.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/filters.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/helpers.cpython-39.opt-1.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/helpers.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/structures.cpython-39.opt-1.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/structures.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/utils.cpython-39.opt-1.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/__pycache__/utils.cpython-39.pyc
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/core.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/filters.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/helpers.py
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/structures.py
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/httpbin/templates/
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/UTF-8-demo.txt
+-rwxrwxr-x root/root usr/lib/python3.9/site-packages/httpbin/templates/forms-post.html
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/httpbin.1.html
+drwxr-xr-x root/root usr/lib/python3.9/site-packages/httpbin/templates/images/
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/images/jackal.jpg
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/images/pig_icon.png
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/images/svg_logo.svg
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/images/wolf_1.webp
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/index.html
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/moby.html
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/sample.xml
+-rw-rw-r-- root/root usr/lib/python3.9/site-packages/httpbin/templates/trackingscripts.html
+-rw-r--r-- root/root usr/lib/python3.9/site-packages/httpbin/utils.py
diff --git a/httpbin/.signature b/httpbin/.signature
new file mode 100644
index 000000000..eac72d88a
--- /dev/null
+++ b/httpbin/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF34PBYcNLs+LAUygBPQ7gEAzwjcUf9fljrlR7BpNj2czlbafCtXGaFuu6+PMWPi758in59oGq1JPJUWwcUF/lkQY=
+SHA256 (Pkgfile) = 6bba791091710eaf34e3a3e35913242011a754a926ed19d0e5660a90333b7249
+SHA256 (.footprint) = 0e7f7131ca4ad700708be6a03b46341dce6552b96d89856f68c2fb8a77881ff4
+SHA256 (httpbin-0.7.0.tar.gz) = 453cc4ce4686e4a54f5775877c7c1d841c5bc12a0da225e9f5655fb4846d0a49
+SHA256 (httpbin-werkzeug-0.15.1.patch) = 7d0262338e6cc7da107b5e211bbd4d8ce5ee1334f4a0c2d3bd6083155381ecb0
diff --git a/httpbin/Pkgfile b/httpbin/Pkgfile
new file mode 100644
index 000000000..a7b2f77ef
--- /dev/null
+++ b/httpbin/Pkgfile
@@ -0,0 +1,23 @@
+# Description: HTTP Request and Response Service
+# URL: https://github.com/requests/httpbin
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: python3-blinker python3-decorator python3-flasgger python3-gevent python3-raven
+
+name=httpbin
+version=0.7.0
+release=1
+source=(https://github.com/requests/httpbin/archive/v$version/$name-$version.tar.gz
+ httpbin-werkzeug-0.15.1.patch)
+
+build() {
+ cd $name-$version
+
+ patch -Np1 -i $SRC/httpbin-werkzeug-0.15.1.patch
+ sed -i 's/brotlipy/Brotli/g' setup.py
+ LC_CTYPE=en_US.UTF-8 /usr/bin/python3 setup.py build
+ LC_CTYPE=en_US.UTF-8 /usr/bin/python3 setup.py install --prefix=/usr \
+ --root=$PKG \
+ -O1 \
+ --skip-build
+
+}
diff --git a/httpbin/httpbin-werkzeug-0.15.1.patch b/httpbin/httpbin-werkzeug-0.15.1.patch
new file mode 100644
index 000000000..abca603a4
--- /dev/null
+++ b/httpbin/httpbin-werkzeug-0.15.1.patch
@@ -0,0 +1,34 @@
+From b6cb2b47a3813da5df8dbffada284b72d7fe099e Mon Sep 17 00:00:00 2001
+From: Simon Kowallik <github@simonkowallik.com>
+Date: Sat, 18 May 2019 13:10:08 +0200
+Subject: [PATCH 1/2] fix #554: update tests, Pipfile, Pipfile.lock for
+ werkzeug>=0.15.1
+
+- update test_httpbin.py to reflect new behaviour of werkzeug
+- require werkzeug>=0.15.1
+---
+ Pipfile | 2 +-
+ Pipfile.lock | 6 +++---
+ test_httpbin.py | 2 --
+ 3 files changed, 4 insertions(+), 6 deletions(-)
+
+diff --git a/test_httpbin.py b/test_httpbin.py
+index b7104ff..ea51ae8 100755
+--- a/test_httpbin.py
++++ b/test_httpbin.py
+@@ -148,7 +148,6 @@ def test_get(self):
+ data = json.loads(response.data.decode('utf-8'))
+ self.assertEqual(data['args'], {})
+ self.assertEqual(data['headers']['Host'], 'localhost')
+- self.assertEqual(data['headers']['Content-Length'], '0')
+ self.assertEqual(data['headers']['User-Agent'], 'test')
+ # self.assertEqual(data['origin'], None)
+ self.assertEqual(data['url'], 'http://localhost/get')
+@@ -162,7 +161,6 @@ def test_anything(self):
+ data = json.loads(response.data.decode('utf-8'))
+ self.assertEqual(data['args'], {})
+ self.assertEqual(data['headers']['Host'], 'localhost')
+- self.assertEqual(data['headers']['Content-Length'], '0')
+ self.assertEqual(data['url'], 'http://localhost/anything/foo/bar')
+ self.assertEqual(data['method'], 'GET')
+ self.assertTrue(response.data.endswith(b'\n'))

Generated by cgit