@@ -1,13 +1,18 @@
1−{ lib, buildPythonPackage, fetchFromGitHub
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
24, elementpath
35, lxml
4−, pytest
6+, pytestCheckHook
7+, pythonOlder
58}:
69
710buildPythonPackage rec {
811 version = "1.7.1";
912 pname = "xmlschema";
1013
14+ disabled = pythonOlder "3.6";
15+
1116 src = fetchFromGitHub {
1217 owner = "sissaschool";
1318 repo = "xmlschema";
@@ -15,20 +20,29 @@ buildPythonPackage rec {
1520 sha256 = "124wq44aqzxrh92ylm44rry9dsyb68drgzbhzacrm511n1j0ziww";
1621 };
1722
18− propagatedBuildInputs = [ elementpath ];
23+ propagatedBuildInputs = [
24+ elementpath
25+ ];
1926
20− checkInputs = [ lxml pytest ];
27+ checkInputs = [
28+ lxml
29+ pytestCheckHook
30+ ];
2131
2232 # Ignore broken fixtures, and tests for files which don't exist.
2333 # For darwin, we need to explicity say we can't reach network
24− checkPhase = ''
25− pytest tests \
26− --ignore=tests/test_factory.py \
27− --ignore=tests/test_schemas.py \
28− --ignore=tests/test_memory.py \
29− --ignore=tests/test_validation.py \
30− -k 'not element_tree_import_script and not export_remote'
31− '';
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" ];
3246
3347 meta = with lib; {
3448 description = "XML Schema validator and data conversion library for Python";