diff --git a/pkgs/development/python-modules/rdflib/default.nix b/pkgs/development/python-modules/rdflib/default.nix index 97a2fe532bc..5f17bbd03c3 100644 --- a/pkgs/development/python-modules/rdflib/default.nix +++ b/pkgs/development/python-modules/rdflib/default.nix @@ -1,36 +1,62 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , fetchPypi -, isodate , html5lib -, SPARQLWrapper +, isodate , networkx , nose -, python +, pyparsing +, tabulate +, pandas +, pytestCheckHook +, pythonOlder +, SPARQLWrapper }: buildPythonPackage rec { pname = "rdflib"; - version = "6.0.1"; + version = "6.0.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "f071caff0b68634e4a7bd1d66ea3416ac98f1cc3b915938147ea899c32608728"; + sha256 = "sha256-YTauBWABR07ir/X8W5VuYqEcOpxmuw89nAqqX7tWhU4="; }; - propagatedBuildInputs = [isodate html5lib SPARQLWrapper ]; + propagatedBuildInputs = [ + isodate + html5lib + pyparsing + SPARQLWrapper + ]; - checkInputs = [ networkx nose ]; + checkInputs = [ + networkx + pandas + nose + tabulate + pytestCheckHook + ]; - # Python 2 syntax - # Failing doctest - doCheck = false; + disabledTests = [ + # Requires network access + "api_key" + "BerkeleyDBTestCase" + "test_bad_password" + "test_service" + "testGuessFormatForParse" + ]; - checkPhase = '' - ${python.interpreter} run_tests.py - ''; + pythonImportsCheck = [ + "rdflib" + ]; - meta = { - description = "A Python library for working with RDF, a simple yet powerful language for representing information"; - homepage = "http://www.rdflib.net/"; + meta = with lib; { + description = "Python library for working with RDF"; + homepage = "https://rdflib.readthedocs.io"; + license = licenses.bsd3; + maintainers = with maintainers; [ ]; }; }