[arch-commits] Commit in (4 files)
Jonas Witschel
diabonas at gemini.archlinux.org
Fri Nov 12 14:06:33 UTC 2021
Date: Friday, November 12, 2021 @ 14:06:32
Author: diabonas
Revision: 1043752
python-proxy.py: add package as checkdepends for python-aiohttp 2.8.0
Added:
python-proxy.py/
python-proxy.py/repos/
python-proxy.py/trunk/
python-proxy.py/trunk/PKGBUILD
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Added: python-proxy.py/trunk/PKGBUILD
===================================================================
--- python-proxy.py/trunk/PKGBUILD (rev 0)
+++ python-proxy.py/trunk/PKGBUILD 2021-11-12 14:06:32 UTC (rev 1043752)
@@ -0,0 +1,38 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-proxy.py
+pkgver=2.3.1
+# unfortunately there are no tags, and the tarball on PyPi is missing tests
+_commit=82d562b7d6b068ea706634f97e6a086f5209df61
+pkgrel=1
+pkgdesc='Lightweight HTTP, HTTPS, HTTP2 and WebSockets proxy server'
+arch=('any')
+url='https://github.com/abhinavsingh/proxy.py'
+license=('BSD')
+depends=('python' 'python-typing_extensions')
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-paramiko')
+optdepends=('python-paramiko: proxy over SSH tunnel support')
+source=("git+$url#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+ cd "${pkgname#python-}"
+ # Remove strict version dependency for typing_extensions
+ sed -i 's/==.*//' requirements.txt
+}
+
+build() {
+ cd "${pkgname#python-}"
+ python setup.py build
+}
+
+check() {
+ cd "${pkgname#python-}"
+ python setup.py test
+}
+
+package() {
+ cd "${pkgname#python-}"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list