mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 14:42:01 +01:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Maintainer: Michał Adamski <michal@ert.pl>
|
|
pkgname=py3-python-socks
|
|
pkgver=2.3.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-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-curio py3-trio py3-pytest py3-yarl"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-$pkgver.tar.gz"
|
|
builddir="$srcdir/python-socks-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f00d7b8111f4423c4670d2750eb66e9da8813b50e47d738dc20b6ecd6b5f775237e53d71d558badd7fa0a2e275975b65d57556f0367290be33b79626d2320d92 python-socks-2.3.0.tar.gz
|
|
"
|