2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, html5lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, isodate
|
2020-04-24 23:36:52 +00:00
|
|
|
, networkx
|
|
|
|
, nose
|
2021-12-06 16:07:01 +00:00
|
|
|
, pyparsing
|
|
|
|
, tabulate
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, SPARQLWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rdflib";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "6.1.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RDFLib";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256:1ih7vx4i16np1p8ig5faw74apmbm7kgyj9alya521yvzid6d7pzd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
isodate
|
|
|
|
html5lib
|
|
|
|
pyparsing
|
|
|
|
SPARQLWrapper
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
networkx
|
|
|
|
pandas
|
|
|
|
nose
|
|
|
|
tabulate
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# requires network access
|
|
|
|
"--deselect rdflib/__init__.py::rdflib"
|
|
|
|
"--deselect test/jsonld/test_onedotone.py::test_suite"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"rdflib"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for working with RDF";
|
|
|
|
homepage = "https://rdflib.readthedocs.io";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|