1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# builds
poetry-core,
# propagates
isodate,
pyparsing,
# extras: networkx
networkx,
# extras: html
html5lib,
# tests
pip,
pytest-cov-stub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "rdflib";
version = "7.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "RDFLib";
repo = "rdflib";
tag = version;
hash = "sha256-jZ5mbTz/ra/ZHAFyMmtqaM4RZw851gfTCBCRuPcGeYA=";
};
build-system = [ poetry-core ];
dependencies = [
pyparsing
]
++ lib.optionals (pythonOlder "3.11") [ isodate ];
optional-dependencies = {
html = [ html5lib ];
networkx = [ networkx ];
};
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pip
pytest-cov-stub
pytestCheckHook
setuptools
]
++ optional-dependencies.networkx
++ optional-dependencies.html;
disabledTestPaths = [
# requires network access
"rdflib/__init__.py::rdflib"
"test/jsonld/test_onedotone.py::test_suite"
];
disabledTests = [
# Requires network access
"test_service"
"testGuessFormatForParse"
"test_infix_owl_example1"
"test_context"
"test_example"
"test_guess_format_for_parse"
"rdflib.extras.infixowl"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Require loopback network access
"TestGraphHTTP"
];
pythonImportsCheck = [ "rdflib" ];
meta = {
changelog = "https://github.com/RDFLib/rdflib/blob/${src.tag}/CHANGELOG.md";
description = "Python library for working with RDF";
homepage = "https://rdflib.readthedocs.io";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}
|