mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-13 04:32:09 +01:00
testing/py3-bidict: new aport
This commit is contained in:
parent
a5aedf8d0d
commit
94de65bb6b
44
testing/py3-bidict/APKBUILD
Normal file
44
testing/py3-bidict/APKBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
||||
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
||||
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
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user