about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sparqlwrapper/default.nix
blob: 20c32f52379fb380b6a4750ab38c3b2e81662538 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  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;
  };
}