[arch-commits] Commit in python-python-socks/repos (2 files)
Jonas Witschel
diabonas at gemini.archlinux.org
Tue Nov 23 13:47:41 UTC 2021
Date: Tuesday, November 23, 2021 @ 13:47:41
Author: diabonas
Revision: 1054455
archrelease: copy trunk to community-staging-any
Added:
python-python-socks/repos/community-staging-any/
python-python-socks/repos/community-staging-any/PKGBUILD
(from rev 1054454, python-python-socks/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-python-socks/repos/community-staging-any/PKGBUILD (from rev 1054454, python-python-socks/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-23 13:47:41 UTC (rev 1054455)
@@ -0,0 +1,32 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-python-socks
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python'
+arch=('any')
+url='https://github.com/romis2012/python-socks'
+license=('APACHE')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-async-timeout' 'python-curio' 'python-flask' 'python-pytest'
+ 'python-pytest-asyncio' 'python-pytest-trio' 'python-trio' 'python-yarl')
+optdepends=('python-async-timeout: asyncio support'
+ 'python-curio: curio support'
+ 'python-trio: trio support')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('088a606ca6e13de79cfa8b180d76e91cca129b3e1ffad2243e5924dc10530340924ea815eb9af0e53b5369daa9cf3e66b2f623da6913ed32916b91d24a47c1e4')
+
+build() {
+ cd "${pkgname#python-}-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "${pkgname#python-}-$pkgver"
+ pytest
+}
+
+package() {
+ cd "${pkgname#python-}-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list