30 buildPythonPackage rec {
35 disabled = pythonOlder "3.8";
37 src = fetchFromGitHub {
40 rev = "refs/tags/${version}";
41 hash = "sha256-VCjvgXMun1Hs+gPeqjzLXbIX1NBQ5aMLz0aWlwsm0iY=";
48 propagatedBuildInputs = [
52 ] ++ lib.optionals (pythonOlder "3.8") [
56 passthru.optional-dependencies = {
65 __darwinAllowLocalNetworking = true;
70 # Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted.
74 ++ passthru.optional-dependencies.networkx
75 ++ passthru.optional-dependencies.html;
78 # requires network access
79 "--deselect=rdflib/__init__.py::rdflib"
80 "--deselect=test/jsonld/test_onedotone.py::test_suite"
84 # Requires network access
86 "testGuessFormatForParse"
87 "test_infix_owl_example1"
90 "test_guess_format_for_parse"
91 "rdflib.extras.infixowl"
92 ] ++ lib.optionals stdenv.isDarwin [
93 # Require loopback network access
97 pythonImportsCheck = [
102 description = "Python library for working with RDF";
103 homepage = "https://rdflib.readthedocs.io";
104 license = licenses.bsd3;
105 maintainers = with maintainers; [ ];