# Maintainer: Luca Weiss 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 "