summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-18 19:20:44 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-18 20:09:28 +0200
commit335849b2e72414cc8d764aa4845679a4eeda3563 (patch)
tree871bf17dc97d770538984ecb0a6af794c33f2200 /dev-python/sparql-wrapper
parentdev-python/isodate: Remove py2 (diff)
downloadgentoo-335849b2e72414cc8d764aa4845679a4eeda3563.tar.gz
gentoo-335849b2e72414cc8d764aa4845679a4eeda3563.tar.bz2
gentoo-335849b2e72414cc8d764aa4845679a4eeda3563.zip
dev-python/sparql-wrapper: Bump to 1.8.5
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/sparql-wrapper')
-rw-r--r--dev-python/sparql-wrapper/Manifest1
-rw-r--r--dev-python/sparql-wrapper/sparql-wrapper-1.8.5.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/sparql-wrapper/Manifest b/dev-python/sparql-wrapper/Manifest
index 4f26d1e5f56a..492816f43340 100644
--- a/dev-python/sparql-wrapper/Manifest
+++ b/dev-python/sparql-wrapper/Manifest
@@ -1 +1,2 @@
DIST SPARQLWrapper-1.8.4.tar.gz 56757 BLAKE2B 1d181a4269d4d2eadfd860e014f31f9134b500d4df437ab548804166821c574cfaedbe011c6b24328a40296da88378205b45839d225ada2b4afc6ffe28360f2a SHA512 301fce7f58b369009a13988a11d782fce6362d73472811a07dc4d962062097b48470c573f5bd1dc337532db467e75936f9e89fcc64dde91930077ce4a1657179
+DIST SPARQLWrapper-1.8.5.tar.gz 89117 BLAKE2B e36f90b0bc8adc789750e7db588ada22e369d10e1ae94777b627680070f4ac8da3e7575c7858121386287034061b6fcfbfbb529f9d8de020ae65a7c6bdb2ef80 SHA512 b0cbe9f7f13a8a0a1c88a17b5966b46e7811acada2712ee03be97808dcb17ba4a71990c07df5d213d21815d7deaf3526381a2cc864d839e561e242be797b6bb2
diff --git a/dev-python/sparql-wrapper/sparql-wrapper-1.8.5.ebuild b/dev-python/sparql-wrapper/sparql-wrapper-1.8.5.ebuild
new file mode 100644
index 000000000000..4ea40ffe7a0d
--- /dev/null
+++ b/dev-python/sparql-wrapper/sparql-wrapper-1.8.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+MY_PN=SPARQLWrapper
+DESCRIPTION="Wrapper around a SPARQL service"
+HOMEPAGE="https://pypi.org/project/SPARQLWrapper/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="W3C"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+# the vast majority of tests access random Internet sites
+RESTRICT="test"
+
+RDEPEND=">=dev-python/rdflib-4[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # disable sys.path hack
+ sed -i -e '/^# prefer local/,/^# end of hack/d' test/*.py || die
+
+ # urllib2
+ rm test/wrapper_test.py || die
+ # connection timeout
+ rm test/fuseki2__v3_6_0__agrovoc__test.py || die
+ # HTTP 401
+ rm test/graphdbEnterprise__v8_9_0__rs__test.py || die
+ # returns some HTML page
+ rm test/stardog__lindas__test.py || die
+
+ # require rdflib-jsonld, apparently
+ sed -i -e 's:test.*JSONLD:_&:' \
+ test/*.py || die
+ # some plugin error, probably the same
+ sed -e 's:testConstruct.*JSON:_&:' \
+ -e 's:testDescribe.*JSON:_&:' \
+ -i test/fuseki2__v3_8_0__stw__test.py || die
+
+ distutils-r1_src_prepare
+}
+
+src_test() {
+ cd test || die
+ 2to3 -n -w --no-diffs *.py || die
+ distutils-r1_src_test
+}