2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, keepalive
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "sparqlwrapper";
|
|
|
|
version = "2.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "SPARQLWrapper";
|
|
|
|
inherit version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-P+0+vMd2F6SnTSZEuG/Yjg8y5/cAOseyszTAJiAXMfE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# break circular dependency loop
|
|
|
|
patchPhase = ''
|
2022-04-27 09:35:20 +00:00
|
|
|
sed -i '/rdflib/d' setup.cfg
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Doesn't actually run tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ keepalive ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "rqw";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://rdflib.github.io/sparqlwrapper";
|
|
|
|
license = licenses.w3c;
|
|
|
|
};
|
|
|
|
}
|