aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Adamski <michal@ert.pl>2020-10-09 16:24:31 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-10-09 16:24:31 +0000
commit559ad5b23f301339ba54f96897e9646ae7e72185 (patch)
treebc8a834ca726d6df2ad4338cfcc900930f035e0f
parent85c650e62cf0a4a56fac77c38edfde7da5be0be3 (diff)
downloadaports-559ad5b23f301339ba54f96897e9646ae7e72185.tar.gz
aports-559ad5b23f301339ba54f96897e9646ae7e72185.tar.bz2
aports-559ad5b23f301339ba54f96897e9646ae7e72185.tar.xz
testing/py3-python-socks: new aport
Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python https://github.com/romis2012/python-socks
-rw-r--r--testing/py3-aiohttp-socks/APKBUILD6
-rw-r--r--testing/py3-python-socks/APKBUILD27
2 files changed, 30 insertions, 3 deletions
diff --git a/testing/py3-aiohttp-socks/APKBUILD b/testing/py3-aiohttp-socks/APKBUILD
index 0936207921..810640ba05 100644
--- a/testing/py3-aiohttp-socks/APKBUILD
+++ b/testing/py3-aiohttp-socks/APKBUILD
@@ -1,12 +1,12 @@
# Maintainer: Michał Adamski <michal@ert.pl>
pkgname=py3-aiohttp-socks
pkgver=0.5.5
-pkgrel=0
+pkgrel=1
pkgdesc="Proxy connector for aiohttp"
url="https://github.com/romis2012/aiohttp-socks"
-arch="noarch !armv7 !x86" # Limited by py3-aiohttp
+arch="noarch"
license="Apache-2.0"
-depends="python3 py3-aiohttp py3-attrs"
+depends="python3 py3-aiohttp py3-attrs py3-python-socks"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/a/aiohttp_socks/aiohttp_socks-$pkgver.tar.gz"
builddir="$srcdir/aiohttp_socks-$pkgver"
diff --git a/testing/py3-python-socks/APKBUILD b/testing/py3-python-socks/APKBUILD
new file mode 100644
index 0000000000..93c1e1f8d1
--- /dev/null
+++ b/testing/py3-python-socks/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Michał Adamski <michal@ert.pl>
+pkgname=py3-python-socks
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python"
+options="!check" # Testsuite ships their own GLIBC version of 3proxy
+url="https://github.com/romis2012/python-socks"
+arch="noarch"
+license="Apache-2.0"
+depends="python3 py3-async-timeout"
+makedepends="py3-setuptools"
+checkdepends="py3-curio py3-trio py3-pytest py3-yarl"
+source="https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-$pkgver.tar.gz"
+builddir="$srcdir/python-socks-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ py.test-3
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+sha512sums="448a6e431395b1720f9e63e6cba1e55dc5851c5e0e624ab79543c1d11a131f07fdb24ddb4acafb0aca1bfc212554809fb0126a26db874e0d437764a5f265d16d python-socks-1.1.0.tar.gz"