1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-rdflib/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

38 lines
1.2 KiB
Text

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=py3-rdflib
_pyname=rdflib
pkgver=6.2.0
pkgrel=0
pkgdesc="A Python library for working with RDF, a simple yet powerful language for representing information"
url="https://rdflib.readthedocs.org/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-isodate py3-parsing"
checkdepends="py3-pytest py3-html5lib py3-sparqlwrapper py3-doctest-ignore-unicode py3-requests py3-pytest-cov"
makedepends="py3-setuptools"
source="https://github.com/RDFLib/rdflib/archive/refs/tags/$pkgver/rdflib-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
}
check() {
case "$CARCH" in
armhf|armv7|x86)
_skip_hash_test="--deselect=test/test_extras/test_infixowl/test_restriction.py::test_restriction_str_and_hash"
;;
esac
python3 -m venv --clear --without-pip --system-site-packages test-env
test-env/bin/python3 setup.py install --skip-build
# exclude failing test
test-env/bin/python3 -m pytest --ignore="test/test_so_69984830.py" $_skip_hash_test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
8177c50e9c2d48859a061dfee24c3560b8f979bc306b3d940a9251ec130e3a324bbad474f4fa7ced5e11522d3bd4e13931461bf106f31177fd972806968d8245 rdflib-6.2.0.tar.gz
"