[arch-commits] Commit in python-proxy.py/trunk (PKGBUILD)

Jonas Witschel diabonas at gemini.archlinux.org
Mon Jan 10 20:12:24 UTC 2022


    Date: Monday, January 10, 2022 @ 20:12:24
  Author: diabonas
Revision: 1099914

upgpkg: python-proxy.py 2.3.1-4: fix file conflict (FS#73325) and building with setuptools >= 59

Modified:
  python-proxy.py/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-10 20:00:44 UTC (rev 1099913)
+++ PKGBUILD	2022-01-10 20:12:24 UTC (rev 1099914)
@@ -1,7 +1,7 @@
 # Maintainer: Jonas Witschel <diabonas at archlinux.org>
 pkgname=python-proxy.py
 pkgver=2.3.1
-pkgrel=3
+pkgrel=4
 pkgdesc='Lightweight HTTP, HTTPS, HTTP2 and WebSockets proxy server'
 arch=('any')
 url='https://github.com/abhinavsingh/proxy.py'
@@ -17,6 +17,9 @@
 	cd "${pkgname#python-}-$pkgver"
 	# Remove strict version dependency for typing_extensions
 	sed -i 's/==.*//' requirements.txt
+
+	# Fix building with python-setuptools >= 59
+	sed -zi 's/server\s*focused/server focused/' setup.py
 }
 
 build() {
@@ -33,4 +36,7 @@
 	cd "${pkgname#python-}-$pkgver"
 	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+
+	# Remove entry point usr/bin/proxy to avoid conflict with libproxy (FS#73325)
+	rm -r "$pkgdir/usr/bin"
 }



More information about the arch-commits mailing list