29 buildPythonPackage rec {
34 disabled = pythonOlder "3.8";
36 src = fetchFromGitHub {
39 rev = "refs/tags/${version}";
40 hash = "sha256-VCjvgXMun1Hs+gPeqjzLXbIX1NBQ5aMLz0aWlwsm0iY=";
47 propagatedBuildInputs = [
51 ] ++ lib.optionals (pythonOlder "3.8") [
55 passthru.optional-dependencies = {
64 __darwinAllowLocalNetworking = true;
71 ++ passthru.optional-dependencies.networkx
72 ++ passthru.optional-dependencies.html;
75 # requires network access
76 "--deselect=rdflib/__init__.py::rdflib"
77 "--deselect=test/jsonld/test_onedotone.py::test_suite"
81 # Requires network access
83 "testGuessFormatForParse"
84 "test_infix_owl_example1"
87 "test_guess_format_for_parse"
88 "rdflib.extras.infixowl"
89 ] ++ lib.optionals stdenv.isDarwin [
90 # Require loopback network access
94 pythonImportsCheck = [
99 description = "Python library for working with RDF";
100 homepage = "https://rdflib.readthedocs.io";
101 license = licenses.bsd3;
102 maintainers = with maintainers; [ ];