1{ lib
2, buildPythonPackage
3, fetchPypi
4, keepalive
5}:
6
7buildPythonPackage rec {
8 pname = "sparqlwrapper";
9 version = "2.0.0";
10
11 src = fetchPypi {
12 pname = "SPARQLWrapper";
13 inherit version;
14 hash = "sha256-P+0+vMd2F6SnTSZEuG/Yjg8y5/cAOseyszTAJiAXMfE=";
15 };
16
17 # break circular dependency loop
18 patchPhase = ''
19 sed -i '/rdflib/d' setup.cfg
20 '';
21
22 # Doesn't actually run tests
23 doCheck = false;
24
25 propagatedBuildInputs = [ keepalive ];
26
27 meta = with lib; {
28 description = "This is a wrapper around a SPARQL service. It helps in creating the query URI and, possibly, convert the result into a more manageable format";
29 homepage = "http://rdflib.github.io/sparqlwrapper";
30 license = licenses.w3c;
31 };
32}