3
0
Fork 0
forked from mirrors/nixpkgs

Merge #167405: python3Packages.rdflib: update dependencies

This commit is contained in:
Vladimír Čunát 2022-04-06 08:17:49 +02:00
commit b6966d911d
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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"
];