31 buildPythonPackage rec {
36 disabled = pythonOlder "3.8";
38 src = fetchFromGitHub {
41 rev = "refs/tags/${version}";
42 hash = "sha256-VCjvgXMun1Hs+gPeqjzLXbIX1NBQ5aMLz0aWlwsm0iY=";
45 nativeBuildInputs = [ poetry-core ];
47 propagatedBuildInputs = [
51 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
53 optional-dependencies = {
55 networkx = [ networkx ];
58 __darwinAllowLocalNetworking = true;
63 # Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted.
66 ] ++ optional-dependencies.networkx ++ optional-dependencies.html;
69 # requires network access
70 "--deselect=rdflib/__init__.py::rdflib"
71 "--deselect=test/jsonld/test_onedotone.py::test_suite"
76 # Requires network access
78 "testGuessFormatForParse"
79 "test_infix_owl_example1"
82 "test_guess_format_for_parse"
83 "rdflib.extras.infixowl"
85 ++ lib.optionals stdenv.hostPlatform.isDarwin [
86 # Require loopback network access
90 pythonImportsCheck = [ "rdflib" ];
93 description = "Python library for working with RDF";
94 homepage = "https://rdflib.readthedocs.io";
95 license = licenses.bsd3;