2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 18:10:36 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, isodate
|
|
|
|
, pyparsing
|
|
|
|
, html5lib
|
|
|
|
, keepalive
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "SPARQLWrapper";
|
2019-12-29 09:28:09 +00:00
|
|
|
version = "1.8.5";
|
2018-10-16 18:10:36 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-29 09:28:09 +00:00
|
|
|
sha256 = "d6a66b5b8cda141660e07aeb00472db077a98d22cb588c973209c7336850fb3c";
|
2018-10-16 18:10:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# break circular dependency loop
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i '/rdflib/d' requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Doesn't actually run tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six isodate pyparsing html5lib keepalive ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 18:10:36 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|