2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, 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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.0.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-YTauBWABR07ir/X8W5VuYqEcOpxmuw89nAqqX7tWhU4=";
|
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
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|