at 22.05-pre 1.2 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, html5lib 6, isodate 7, networkx 8, nose 9, pyparsing 10, tabulate 11, pandas 12, pytestCheckHook 13, pythonOlder 14, SPARQLWrapper 15}: 16 17buildPythonPackage rec { 18 pname = "rdflib"; 19 version = "6.0.2"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchPypi { 25 inherit pname version; 26 sha256 = "sha256-YTauBWABR07ir/X8W5VuYqEcOpxmuw89nAqqX7tWhU4="; 27 }; 28 29 propagatedBuildInputs = [ 30 isodate 31 html5lib 32 pyparsing 33 SPARQLWrapper 34 ]; 35 36 checkInputs = [ 37 networkx 38 pandas 39 nose 40 tabulate 41 pytestCheckHook 42 ]; 43 44 disabledTests = [ 45 # Requires network access 46 "api_key" 47 "BerkeleyDBTestCase" 48 "test_bad_password" 49 "test_service" 50 "testGuessFormatForParse" 51 ] ++ lib.optional stdenv.isDarwin [ 52 # Require loopback network access 53 "test_sparqlstore" 54 "test_sparqlupdatestore_mock" 55 "TestGraphHTTP" 56 ]; 57 58 pythonImportsCheck = [ 59 "rdflib" 60 ]; 61 62 meta = with lib; { 63 description = "Python library for working with RDF"; 64 homepage = "https://rdflib.readthedocs.io"; 65 license = licenses.bsd3; 66 maintainers = with maintainers; [ ]; 67 }; 68}