ayaports/testing/py3-urllib3-secure-extra/APKBUILD

36 lines
1,011 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_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
"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
subpackages="$pkgname-pyc"
build() {
flit build --setup-py --format wheel
python3 -m build --wheel --no-isolation
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
151dfa2dd4e7fecea482bec0be69410c213336b95e00c900f600053dc9777618c3b9cc1c69e14f61e909ad7b785bcf391ea11c74b1b710749b70e138fbdd6de3 py3-urllib3-secure-extra-0.1.0.tar.gz
"