btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / sparqlwrapper / default.nix
blob20c32f52379fb380b6a4750ab38c3b2e81662538
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   keepalive,
6 }:
8 buildPythonPackage rec {
9   pname = "sparqlwrapper";
10   version = "2.0.0";
11   format = "setuptools";
13   src = fetchPypi {
14     pname = "SPARQLWrapper";
15     inherit version;
16     hash = "sha256-P+0+vMd2F6SnTSZEuG/Yjg8y5/cAOseyszTAJiAXMfE=";
17   };
19   # break circular dependency loop
20   patchPhase = ''
21     sed -i '/rdflib/d' setup.cfg
22   '';
24   # Doesn't actually run tests
25   doCheck = false;
27   propagatedBuildInputs = [ keepalive ];
29   meta = with lib; {
30     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";
31     mainProgram = "rqw";
32     homepage = "http://rdflib.github.io/sparqlwrapper";
33     license = licenses.w3c;
34   };