fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
35 lines
788 B
Nix
35 lines
788 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
keepalive,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sparqlwrapper";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "SPARQLWrapper";
|
|
inherit version;
|
|
hash = "sha256-P+0+vMd2F6SnTSZEuG/Yjg8y5/cAOseyszTAJiAXMfE=";
|
|
};
|
|
|
|
# break circular dependency loop
|
|
patchPhase = ''
|
|
sed -i '/rdflib/d' setup.cfg
|
|
'';
|
|
|
|
# Doesn't actually run tests
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ keepalive ];
|
|
|
|
meta = with 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";
|
|
mainProgram = "rqw";
|
|
homepage = "http://rdflib.github.io/sparqlwrapper";
|
|
license = licenses.w3c;
|
|
};
|
|
}
|