depot/third_party/nixpkgs/pkgs/development/python-modules/rdflib/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

76 lines
1.3 KiB
Nix

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