From 083ebe133bb434d2319fb5a0f89347c7ba806d64 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 5 Apr 2022 22:25:52 +0200 Subject: [PATCH] python3Packages.rdflib: update dependencies Unbreaks zeitgeist and pantheon.switchboard-with-plugs. --- .../python-modules/rdflib/default.nix | 54 +++++++++++-------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/pkgs/development/python-modules/rdflib/default.nix b/pkgs/development/python-modules/rdflib/default.nix index 73f170b90b1b..1a587d8d61ac 100644 --- a/pkgs/development/python-modules/rdflib/default.nix +++ b/pkgs/development/python-modules/rdflib/default.nix @@ -2,16 +2,23 @@ , stdenv , buildPythonPackage , fetchFromGitHub -, html5lib -, isodate -, networkx -, nose -, pyparsing -, tabulate -, pandas -, pytestCheckHook , pythonOlder -, SPARQLWrapper + +# propagates +, isodate +, pyparsing + +# propagates <3.8 +, importlib-metadata + +# extras: networkx +, networkx + +# extras: html +, html5lib + +# tests +, pytestCheckHook }: buildPythonPackage rec { @@ -32,34 +39,37 @@ buildPythonPackage rec { isodate html5lib pyparsing - SPARQLWrapper + ] ++ lib.optionals (pythonOlder "3.8") [ + importlib-metadata ]; + passthru.extra-requires = { + html = [ + html5lib + ]; + networkx = [ + networkx + ]; + }; + checkInputs = [ - networkx - pandas - nose - tabulate pytestCheckHook - ]; + ] + ++ passthru.extra-requires.networkx + ++ passthru.extra-requires.html; pytestFlagsArray = [ # requires network access - "--deselect rdflib/__init__.py::rdflib" - "--deselect test/jsonld/test_onedotone.py::test_suite" + "--deselect=rdflib/__init__.py::rdflib" + "--deselect=test/jsonld/test_onedotone.py::test_suite" ]; disabledTests = [ # Requires network access - "api_key" - "BerkeleyDBTestCase" - "test_bad_password" "test_service" "testGuessFormatForParse" ] ++ lib.optional stdenv.isDarwin [ # Require loopback network access - "test_sparqlstore" - "test_sparqlupdatestore_mock" "TestGraphHTTP" ];