1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, elementpath 5, lxml 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 version = "1.8.2"; 12 pname = "xmlschema"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "sissaschool"; 18 repo = "xmlschema"; 19 rev = "v${version}"; 20 sha256 = "sha256-d7f19T17aAwdtNDjCrsXXY39u0aRgQo4vFPnxFNs2PQ="; 21 }; 22 23 propagatedBuildInputs = [ 24 elementpath 25 ]; 26 27 checkInputs = [ 28 lxml 29 pytestCheckHook 30 ]; 31 32 # Ignore broken fixtures, and tests for files which don't exist. 33 # For darwin, we need to explicity say we can't reach network 34 disabledTests = [ 35 "export_remote" 36 "element_tree_import_script" 37 ]; 38 39 disabledTestPaths = [ 40 "tests/test_schemas.py" 41 "tests/test_memory.py" 42 "tests/test_validation.py" 43 ]; 44 45 pythonImportsCheck = [ "xmlschema" ]; 46 47 meta = with lib; { 48 description = "XML Schema validator and data conversion library for Python"; 49 homepage = "https://github.com/sissaschool/xmlschema"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ jonringer ]; 52 }; 53}