diff options
Diffstat (limited to 'pkgs/development/python-modules/sparqlwrapper/default.nix')
-rw-r--r-- | pkgs/development/python-modules/sparqlwrapper/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sparqlwrapper/default.nix b/pkgs/development/python-modules/sparqlwrapper/default.nix new file mode 100644 index 000000000000..44f16fbdfc6c --- /dev/null +++ b/pkgs/development/python-modules/sparqlwrapper/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, six +, isodate +, pyparsing +, html5lib +, keepalive +}: + +buildPythonPackage rec { + pname = "SPARQLWrapper"; + version = "1.7.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1y12hpsfjd779yi29bhvl6g4vszadjvd8jw38z5rg77b034vxjnw"; + }; + + # break circular dependency loop + patchPhase = '' + sed -i '/rdflib/d' requirements.txt + ''; + + # Doesn't actually run tests + doCheck = false; + + propagatedBuildInputs = [ six isodate pyparsing html5lib keepalive ]; + + meta = with stdenv.lib; { + 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"; + homepage = "http://rdflib.github.io/sparqlwrapper"; + license = licenses.w3c; + }; +} |