Merge #167405: python3Packages.rdflib: update dependencies
This commit is contained in:
commit
b6966d911d
|
@ -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"
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue