1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 07:59:24 +03:00
nixpkgs/pkgs/development/python-modules/rdflib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.3 KiB
Nix
Raw Normal View History

2021-11-05 16:14:30 +01:00
{ lib
2021-11-08 16:12:32 -05:00
, stdenv
2021-11-05 16:14:30 +01:00
, buildPythonPackage
, fetchFromGitHub
2018-02-03 09:35:22 +01:00
, html5lib
2021-11-05 16:14:30 +01:00
, isodate
2018-02-03 09:35:22 +01:00
, networkx
, nose
2021-11-05 16:14:30 +01:00
, pyparsing
, tabulate
, pandas
, pytestCheckHook
, pythonOlder
, SPARQLWrapper
2018-02-03 09:35:22 +01:00
}:
buildPythonPackage rec {
pname = "rdflib";
2022-01-13 16:58:54 -08:00
version = "6.1.1";
2021-11-05 16:14:30 +01:00
format = "setuptools";
disabled = pythonOlder "3.7";
2018-02-03 09:35:22 +01:00
src = fetchFromGitHub {
owner = "RDFLib";
repo = pname;
rev = version;
hash = "sha256:1ih7vx4i16np1p8ig5faw74apmbm7kgyj9alya521yvzid6d7pzd";
2018-02-03 09:35:22 +01:00
};
2021-11-05 16:14:30 +01:00
propagatedBuildInputs = [
isodate
html5lib
pyparsing
SPARQLWrapper
];
2018-02-03 09:35:22 +01:00
2021-11-05 16:14:30 +01:00
checkInputs = [
networkx
pandas
nose
tabulate
pytestCheckHook
];
2018-02-03 09:35:22 +01:00
pytestFlagsArray = [
# requires network access
"--deselect rdflib/__init__.py::rdflib"
"--deselect test/jsonld/test_onedotone.py::test_suite"
];
2021-11-05 16:14:30 +01:00
disabledTests = [
# Requires network access
"api_key"
"BerkeleyDBTestCase"
"test_bad_password"
"test_service"
"testGuessFormatForParse"
2021-11-08 16:12:32 -05:00
] ++ lib.optional stdenv.isDarwin [
# Require loopback network access
"test_sparqlstore"
"test_sparqlupdatestore_mock"
"TestGraphHTTP"
2021-11-05 16:14:30 +01:00
];
2018-02-03 09:35:22 +01:00
2021-11-05 16:14:30 +01:00
pythonImportsCheck = [
"rdflib"
];
2018-02-03 09:35:22 +01:00
2021-11-05 16:14:30 +01:00
meta = with lib; {
description = "Python library for working with RDF";
homepage = "https://rdflib.readthedocs.io";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
2018-02-03 09:35:22 +01:00
};
}