aports/testing/py3-doi/APKBUILD
Struan Robertson 5f125903c5 testing/py3-doi: new aport
Pure python package is noarch

Deselect failing tests
2025-04-12 12:08:47 +00:00

41 lines
1 KiB
Text

# Maintainer: Struan Robertson <contact@struanrobertson.co.uk>
pkgname=py3-doi
_pkgname=python-doi
pkgver=0.2
pkgrel=0
pkgdesc="Python package to work with Document Object Identifier (doi)"
url="https://github.com/papis/python-doi"
arch="noarch"
license="GPL-3.0-only-or-later"
depends="python3"
makedepends="
py3-wheel
py3-setuptools_scm
py3-gpep517
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/papis/python-doi/archive/v$pkgver/python-doi-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --system-site-packages .testenv
.testenv/bin/python -m installer .dist/*.whl
.testenv/bin/python -m pytest -k "not test_validate_doi and not test_get_real_url_from_doi"
}
package() {
python3 -m installer \
-d "$pkgdir" \
.dist/*.whl
}
sha512sums="
b32d0f5b3d4da5d349fe9350c12e952d5adb84841895ef56e516ad4f81767c1fc4a057e265d8b8e89c107185a28f2e7bc9b36b1bc5da04ba31f1475a9b2448aa python-doi-v0.2.tar.gz
"