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