diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2021-09-08 22:24:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 22:24:47 +0200 |
commit | 18ce2af98adb9f40561ea134c5e463b799d4c7a8 (patch) | |
tree | 7b04cd5af6c3c7960bf60e09a4feba19364bf03a | |
parent | 0c711cd61fb24aedded16f29ec0c5292133a6568 (diff) | |
parent | 61ce506bda30291739c7cd6bca4b5ff07987ed12 (diff) |
Merge pull request #136913 from r-ryantm/auto-update/python3.8-xmlschema
python38Packages.xmlschema: 1.7.0 -> 1.7.1
-rw-r--r-- | pkgs/development/python-modules/xmlschema/default.nix | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/xmlschema/default.nix b/pkgs/development/python-modules/xmlschema/default.nix index 960dd227388d..a2bd27d9f1d8 100644 --- a/pkgs/development/python-modules/xmlschema/default.nix +++ b/pkgs/development/python-modules/xmlschema/default.nix @@ -1,34 +1,48 @@ -{ lib, buildPythonPackage, fetchFromGitHub +{ lib +, buildPythonPackage +, fetchFromGitHub , elementpath , lxml -, pytest +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { - version = "1.7.0"; + version = "1.7.1"; pname = "xmlschema"; + disabled = pythonOlder "3.6"; + src = fetchFromGitHub { owner = "sissaschool"; repo = "xmlschema"; rev = "v${version}"; - sha256 = "0vf0gj1sbv9f7gjm3zbyl0b8pkrn00yzx57ddff0h2kazv8jlpwi"; + sha256 = "124wq44aqzxrh92ylm44rry9dsyb68drgzbhzacrm511n1j0ziww"; }; - propagatedBuildInputs = [ elementpath ]; + propagatedBuildInputs = [ + elementpath + ]; - checkInputs = [ lxml pytest ]; + checkInputs = [ + lxml + pytestCheckHook + ]; # Ignore broken fixtures, and tests for files which don't exist. # For darwin, we need to explicity say we can't reach network - checkPhase = '' - pytest tests \ - --ignore=tests/test_factory.py \ - --ignore=tests/test_schemas.py \ - --ignore=tests/test_memory.py \ - --ignore=tests/test_validation.py \ - -k 'not element_tree_import_script and not export_remote' - ''; + disabledTests = [ + "export_remote" + "element_tree_import_script" + ]; + + disabledTestPaths = [ + "tests/test_schemas.py" + "tests/test_memory.py" + "tests/test_validation.py" + ]; + + pythonImportsCheck = [ "xmlschema" ]; meta = with lib; { description = "XML Schema validator and data conversion library for Python"; |