Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, six 5, isodate 6, pyparsing 7, html5lib 8, keepalive 9}: 10 11buildPythonPackage rec { 12 pname = "SPARQLWrapper"; 13 version = "1.8.2"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "7f4c8d38ea1bfcffbc358c9a05de35a3fd7152cc3e8ea57963ee7a0a242f7a5e"; 18 }; 19 20 # break circular dependency loop 21 patchPhase = '' 22 sed -i '/rdflib/d' requirements.txt 23 ''; 24 25 # Doesn't actually run tests 26 doCheck = false; 27 28 propagatedBuildInputs = [ six isodate pyparsing html5lib keepalive ]; 29 30 meta = with stdenv.lib; { 31 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"; 32 homepage = "http://rdflib.github.io/sparqlwrapper"; 33 license = licenses.w3c; 34 }; 35}