diff options
author | Luca Weiss <luca@z3ntu.xyz> | 2019-08-22 21:16:53 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-23 15:05:19 -0300 |
commit | 6850c6a378849b98af8a7c475a303379eece191f (patch) | |
tree | 6467b69431edcdffcde21edfd36eb8064e8ceae1 /testing/py3-rdflib | |
parent | df9a1c1f5cebd9cb8f6926b70142e9fa4f1debcb (diff) | |
download | aports-6850c6a378849b98af8a7c475a303379eece191f.tar.bz2 aports-6850c6a378849b98af8a7c475a303379eece191f.tar.xz |
testing/py3-rdflib: new aport
Diffstat (limited to 'testing/py3-rdflib')
-rw-r--r-- | testing/py3-rdflib/APKBUILD | 35 | ||||
-rw-r--r-- | testing/py3-rdflib/py3.7.patch | 19 |
2 files changed, 54 insertions, 0 deletions
diff --git a/testing/py3-rdflib/APKBUILD b/testing/py3-rdflib/APKBUILD new file mode 100644 index 0000000000..d77c153ca1 --- /dev/null +++ b/testing/py3-rdflib/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Luca Weiss <luca@z3ntu.xyz> +pkgname=py3-rdflib +_pyname=rdflib +pkgver=4.2.2 +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-six" +checkdepends="py3-nose py3-parsing py3-html5lib py3-sparqlwrapper" +makedepends="py3-setuptools" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz + py3.7.patch" +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + # "python3 ./run_tests.py" fails + nosetests --where=./build/src \ + --with-doctest \ + --doctest-extension=.doctest \ + --doctest-tests +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="efc24d8ce1080e59950cecc9c779ae0d63673c8690f74db1772f6c2dbf24d6f4de5214d5870a074bffe549b42d8d5f5d131df29bbfd174b763ae1f843aec7d5c rdflib-4.2.2.tar.gz +a6e847bff7ab7e3e490dd86424bd9ec618722d8010b5373ab4848f2d3187edb49f7dce7d30c8738e0596759e77d27132e1ca114fccdf554da4af56bc23c3c2bf py3.7.patch" diff --git a/testing/py3-rdflib/py3.7.patch b/testing/py3-rdflib/py3.7.patch new file mode 100644 index 0000000000..4e1bb4235e --- /dev/null +++ b/testing/py3-rdflib/py3.7.patch @@ -0,0 +1,19 @@ +diff -u -r RDFLib-rdflib-2fb94c8/rdflib/plugins/sparql/evaluate.py RDFLib-rdflib-2fb94c8-py3.7/rdflib/plugins/sparql/evaluate.py +--- RDFLib-rdflib-2fb94c8/rdflib/plugins/sparql/evaluate.py 2017-01-29 17:51:48.000000000 +0100 ++++ RDFLib-rdflib-2fb94c8-py3.7/rdflib/plugins/sparql/evaluate.py 2018-07-29 17:31:55.614217759 +0200 +@@ -326,9 +326,12 @@ + # import pdb; pdb.set_trace() + res = evalPart(ctx, slice.p) + i = 0 +- while i < slice.start: +- res.next() +- i += 1 ++ try: ++ while i < slice.start: ++ res.next() ++ i += 1 ++ except StopIteration: ++ return + i = 0 + for x in res: + i += 1 |