Hi maintainer, a small revision update here. While I'll look into updating to py-http-bin-0.7.0 in the future (upcoming www/py-treq port claims version == 0.5.0 as its dependency), I don't think the patch originally supplied in 2016 is needed today to support Python 2.5 and earlier on OpenBSD.
I had no trouble compiling with LC_CTYPE=C, but just in case I've added UTF-8 there to replace the patch. MODPY_PI sets HOMEPAGE, so I've removed it too. Ok?
Index: Makefile =================================================================== RCS file: /cvs/ports/www/py-httpbin/Makefile,v retrieving revision 1.4 diff -u -p -u -p -r1.4 Makefile --- Makefile 3 Jan 2017 19:28:48 -0000 1.4 +++ Makefile 6 Feb 2019 14:59:23 -0000 @@ -5,12 +5,10 @@ COMMENT = HTTP request and response ser MODPY_EGG_VERSION = 0.5.0 DISTNAME = httpbin-${MODPY_EGG_VERSION} PKGNAME = py-${DISTNAME} -REVISION = 0 +REVISION = 1 CATEGORIES = www -HOMEPAGE = https://github.com/Runscope/httpbin - MAINTAINER = Alexandr Shadchin <shadc...@openbsd.org> # MIT @@ -31,5 +29,7 @@ FLAVORS = python3 FLAVOR ?= NO_TEST = Yes + +MAKE_ENV += LC_CTYPE=en_US.UTF-8 .include <bsd.port.mk> Index: patches/patch-setup_py =================================================================== RCS file: patches/patch-setup_py diff -N patches/patch-setup_py --- patches/patch-setup_py 19 Aug 2016 07:39:05 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -$OpenBSD: patch-setup_py,v 1.2 2016/08/19 07:39:05 shadchin Exp $ ---- setup.py.orig Thu Aug 11 05:49:19 2016 -+++ setup.py Thu Aug 18 10:14:50 2016 -@@ -1,8 +1,9 @@ - from setuptools import setup, find_packages - import os -+import codecs - --long_description = open( -- os.path.join(os.path.dirname(__file__), 'README.rst')).read() -+long_description = codecs.open( -+ os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8').read() - - setup( - name="httpbin",