1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/community/py3-arxiv/APKBUILD
2025-04-10 13:57:14 +00:00

39 lines
1.1 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-arxiv
_pkgorig=arxiv.py
pkgver=2.2.0
pkgrel=0
pkgdesc="Python wrapper for the arXiv API"
url="https://github.com/lukasschwab/arxiv.py"
arch="noarch"
license="MIT"
depends="python3 py3-feedparser py3-requests"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest-xdist py3-flake8"
subpackages="$pkgname-pyc"
source="https://github.com/lukasschwab/arxiv.py/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
# test domain 503's, uses net instead of a mock server
options="!check"
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 -n auto
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
f228ee07a2baf1a0725d987ffb1c64d95af0e6ba66bfa5a317beadaec96377329289afd878c642eff49a69ac1731d3656427a817c5d3e1213d465b14dcb6731c arxiv.py-2.2.0.tar.gz
"