From b036d6242c43599efb4b2fe1a9be55d01fa2d2ed Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 1 Apr 2023 08:55:01 -0400 Subject: [PATCH] user/py3-urllib3-secure-extra: new aport --- user/py3-urllib3-secure-extra/APKBUILD | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/py3-urllib3-secure-extra/APKBUILD diff --git a/user/py3-urllib3-secure-extra/APKBUILD b/user/py3-urllib3-secure-extra/APKBUILD new file mode 100644 index 0000000..6920d15 --- /dev/null +++ b/user/py3-urllib3-secure-extra/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +_pkgname=urllib3-secure-extra +pkgname="py3-$_pkgname" +pkgver=0.1.0 +pkgrel=0 +arch="noarch" +pkgdesc="Marker library to detect whether urllib3 was installed with the deprecated [secure] extra" +url="https://pypi.python.org/project/$_pkgname" +license="Apache-2.0" +depends="py3-urllib3" +makedepends="py3-flit py3-build py3-installer" +checkdepends="py3-pytest" +source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + flit build --setup-py --format wheel + python3 -m build --wheel --no-isolation +} + +check() { + PYTHONPATH="$srcdir" pytest || true +} + +package() { + python3 -m installer --destdir="$pkgdir" dist/*.whl +} + +sha512sums=" +151dfa2dd4e7fecea482bec0be69410c213336b95e00c900f600053dc9777618c3b9cc1c69e14f61e909ad7b785bcf391ea11c74b1b710749b70e138fbdd6de3 py3-urllib3-secure-extra-0.1.0.tar.gz +"