diff -r 55332b321d5f www/py-httpbin/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ www/py-httpbin/Makefile Sun Dec 27 01:20:42 2020 -0500 @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= httpbin +DISTVERSION= 0.7.0 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= python@FreeBSD.org +COMMENT= HTTP request and response service + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markupsafe>0:textproc/py-markupsafe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}itsdangerous>0:security/py-itsdangerous@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}brotlipy>0:archivers/py-brotlipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}raven>0:devel/py-raven@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}werkzeug>=0.15.1:www/py-werkzeug@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker@${PY_FLAVOR} + +USES= python shebangfix +USE_PYTHON= autoplist distutils concurrent +SHEBANG_FILES= test_httpbin.py + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} test_httpbin.py + +.include diff -r 55332b321d5f www/py-httpbin/distinfo --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ www/py-httpbin/distinfo Sun Dec 27 01:20:42 2020 -0500 @@ -0,0 +1,3 @@ +TIMESTAMP = 1609037933 +SHA256 (httpbin-0.7.0.tar.gz) = cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa +SIZE (httpbin-0.7.0.tar.gz) = 92613 diff -r 55332b321d5f www/py-httpbin/files/patch-issue555 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ www/py-httpbin/files/patch-issue555 Sun Dec 27 01:20:42 2020 -0500 @@ -0,0 +1,28 @@ +--- setup.py.orig 2018-05-08 11:58:37 UTC ++++ 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' ++ 'raven[flask]', 'werkzeug>=0.15.1' + ], + ) +--- test_httpbin.py.orig 2018-05-08 11:41:03 UTC ++++ test_httpbin.py +@@ -144,7 +144,6 @@ class HttpbinTestCase(unittest.TestCase): + 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') +@@ -158,7 +157,6 @@ class HttpbinTestCase(unittest.TestCase): + 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')) diff -r 55332b321d5f www/py-httpbin/pkg-descr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ www/py-httpbin/pkg-descr Sun Dec 27 01:20:42 2020 -0500 @@ -0,0 +1,3 @@ +A HTTP Request & Response Service, written in Python + Flask. + +WWW: https://github.com/postmanlabs/httpbin