pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-httpbin py-httpbin: add patch for compatibility...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/524a619466df
branches:  trunk
changeset: 381604:524a619466df
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jul 10 19:52:03 2022 +0000

description:
py-httpbin: add patch for compatibility with py-werkzeug 2.1

Bump PKGREVISION.

diffstat:

 www/py-httpbin/Makefile                      |   4 ++--
 www/py-httpbin/distinfo                      |   3 ++-
 www/py-httpbin/patches/patch-httpbin_core.py |  16 ++++++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 5388ed3d6b91 -r 524a619466df www/py-httpbin/Makefile
--- a/www/py-httpbin/Makefile   Sun Jul 10 19:27:10 2022 +0000
+++ b/www/py-httpbin/Makefile   Sun Jul 10 19:52:03 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2022/01/04 20:55:29 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2022/07/10 19:52:03 wiz Exp $
 
 DISTNAME=      httpbin-0.7.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=h/httpbin/}
 
diff -r 5388ed3d6b91 -r 524a619466df www/py-httpbin/distinfo
--- a/www/py-httpbin/distinfo   Sun Jul 10 19:27:10 2022 +0000
+++ b/www/py-httpbin/distinfo   Sun Jul 10 19:52:03 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 11:30:41 nia Exp $
+$NetBSD: distinfo,v 1.9 2022/07/10 19:52:03 wiz Exp $
 
 BLAKE2s (httpbin-0.7.0.tar.gz) = c25602362782565ce40953f3a531cdc6f943745e1dfa9ece77caa7c68c9ccd4d
 SHA512 (httpbin-0.7.0.tar.gz) = 82e80058b58943637e9f8191764cea79bf7a6e40f36069f9b5d3f908585dbef20a03ef070d1f865d350920b6e874a93a48a544b05c14ff4911038ec2c20f6f63
 Size (httpbin-0.7.0.tar.gz) = 92613 bytes
+SHA1 (patch-httpbin_core.py) = 3c01a77d18d540b6cd5e5a5b013418b6f70a6819
diff -r 5388ed3d6b91 -r 524a619466df www/py-httpbin/patches/patch-httpbin_core.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-httpbin/patches/patch-httpbin_core.py      Sun Jul 10 19:52:03 2022 +0000
@@ -0,0 +1,16 @@
+$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
+ 



Home | Main Index | Thread Index | Old Index