Sun Jul 10 19:52:03 2022 UTC ()
py-httpbin: add patch for compatibility with py-werkzeug 2.1

Bump PKGREVISION.


(wiz)
diff -r1.11 -r1.12 pkgsrc/www/py-httpbin/Makefile
diff -r1.8 -r1.9 pkgsrc/www/py-httpbin/distinfo
diff -r0 -r1.1 pkgsrc/www/py-httpbin/patches/patch-httpbin_core.py

cvs diff -r1.11 -r1.12 pkgsrc/www/py-httpbin/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-httpbin/Makefile 2022/01/04 20:55:29 1.11
+++ pkgsrc/www/py-httpbin/Makefile 2022/07/10 19:52:03 1.12
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.11 2022/01/04 20:55:29 wiz Exp $ 1# $NetBSD: Makefile,v 1.12 2022/07/10 19:52:03 wiz Exp $
2 2
3DISTNAME= httpbin-0.7.0 3DISTNAME= httpbin-0.7.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 1 5PKGREVISION= 2
6CATEGORIES= www python 6CATEGORIES= www python
7MASTER_SITES= ${MASTER_SITE_PYPI:=h/httpbin/} 7MASTER_SITES= ${MASTER_SITE_PYPI:=h/httpbin/}
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://github.com/Runscope/httpbin 10HOMEPAGE= https://github.com/Runscope/httpbin
11COMMENT= HTTP Request and Response Service 11COMMENT= HTTP Request and Response Service
12LICENSE= mit 12LICENSE= mit
13 13
14DEPENDS+= ${PYPKGPREFIX}-brotlipy-[0-9]*:../../archivers/py-brotlipy 14DEPENDS+= ${PYPKGPREFIX}-brotlipy-[0-9]*:../../archivers/py-brotlipy
15DEPENDS+= ${PYPKGPREFIX}-decorator-[0-9]*:../../devel/py-decorator 15DEPENDS+= ${PYPKGPREFIX}-decorator-[0-9]*:../../devel/py-decorator
16DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask 16DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
17DEPENDS+= ${PYPKGPREFIX}-flask-common-[0-9]*:../../www/py-flask-common 17DEPENDS+= ${PYPKGPREFIX}-flask-common-[0-9]*:../../www/py-flask-common
18DEPENDS+= ${PYPKGPREFIX}-Flask-Limiter-[0-9]*:../../www/py-flask-limiter 18DEPENDS+= ${PYPKGPREFIX}-Flask-Limiter-[0-9]*:../../www/py-flask-limiter

cvs diff -r1.8 -r1.9 pkgsrc/www/py-httpbin/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-httpbin/distinfo 2021/10/26 11:30:41 1.8
+++ pkgsrc/www/py-httpbin/distinfo 2022/07/10 19:52:03 1.9
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.8 2021/10/26 11:30:41 nia Exp $ 1$NetBSD: distinfo,v 1.9 2022/07/10 19:52:03 wiz Exp $
2 2
3BLAKE2s (httpbin-0.7.0.tar.gz) = c25602362782565ce40953f3a531cdc6f943745e1dfa9ece77caa7c68c9ccd4d 3BLAKE2s (httpbin-0.7.0.tar.gz) = c25602362782565ce40953f3a531cdc6f943745e1dfa9ece77caa7c68c9ccd4d
4SHA512 (httpbin-0.7.0.tar.gz) = 82e80058b58943637e9f8191764cea79bf7a6e40f36069f9b5d3f908585dbef20a03ef070d1f865d350920b6e874a93a48a544b05c14ff4911038ec2c20f6f63 4SHA512 (httpbin-0.7.0.tar.gz) = 82e80058b58943637e9f8191764cea79bf7a6e40f36069f9b5d3f908585dbef20a03ef070d1f865d350920b6e874a93a48a544b05c14ff4911038ec2c20f6f63
5Size (httpbin-0.7.0.tar.gz) = 92613 bytes 5Size (httpbin-0.7.0.tar.gz) = 92613 bytes
 6SHA1 (patch-httpbin_core.py) = 3c01a77d18d540b6cd5e5a5b013418b6f70a6819

File Added: pkgsrc/www/py-httpbin/patches/patch-httpbin_core.py
$NetBSD: patch-httpbin_core.py,v 1.1 2022/07/10 19:52:03 wiz Exp $

Fix compatibility with py-werkzeug>=2.1
https://github.com/postmanlabs/httpbin/issues/673

--- httpbin/core.py.orig	2018-05-08 11:41:03.000000000 +0000
+++ httpbin/core.py
@@ -19,7 +19,7 @@ from flask import Flask, Response, reque
 from six.moves import range as xrange
 from werkzeug.datastructures import WWWAuthenticate, MultiDict
 from werkzeug.http import http_date
-from werkzeug.wrappers import BaseResponse
+from werkzeug.wrappers import Response as BaseResponse
 from werkzeug.http import parse_authorization_header
 from raven.contrib.flask import Sentry