From 94de65bb6b9e3f58097ce5a23751938ae7f7731a Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Mon, 19 Jun 2023 21:54:08 +0200 Subject: [PATCH] testing/py3-bidict: new aport --- testing/py3-bidict/APKBUILD | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 testing/py3-bidict/APKBUILD diff --git a/testing/py3-bidict/APKBUILD b/testing/py3-bidict/APKBUILD new file mode 100644 index 00000000000..0380efae194 --- /dev/null +++ b/testing/py3-bidict/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=py3-bidict +pkgver=0.22.1 +pkgrel=0 +pkgdesc="The bidirectional mapping library for Python" +url="https://bidict.readthedocs.io/" +arch="noarch" +license="MPL-2.0" +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +checkdepends=" + py3-hypothesis + py3-pytest + py3-pytest-benchmark + py3-pytest-xdist + " +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/jab/bidict/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/bidict-$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=" +c85355125fa0a56c8e763e9c2662be52ca753827d06276adcbe60d87265095e7e59669ec1e4bf3361301a3ae942a9aa47b084f8c3a4a066041d54e353e7b2ea8 py3-bidict-0.22.1.tar.gz +"