Robert Schütz 2023-02-06 18:09:26 -08:00
parent a3c897fe34
commit 01fecfaa9b

View file

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, elementpath
, jinja2
, lxml
, pytestCheckHook
, pythonOlder
@ -9,7 +10,7 @@
buildPythonPackage rec {
pname = "xmlschema";
version = "2.1.1";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -18,7 +19,7 @@ buildPythonPackage rec {
owner = "sissaschool";
repo = "xmlschema";
rev = "refs/tags/v${version}";
hash = "sha256-rt7QScg458ezDwktO1QRydmC3XqedX+kPpv6J+JvLzQ=";
hash = "sha256-KK1F8OVK+19ZWwu+2UtTMiVNyPPoPOv3V1qJFZAu2h4=";
};
propagatedBuildInputs = [
@ -26,28 +27,17 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
jinja2
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
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; {
changelog = "https://github.com/sissaschool/xmlschema/blob/${src.rev}/CHANGELOG.rst";
description = "XML Schema validator and data conversion library for Python";
homepage = "https://github.com/sissaschool/xmlschema";
license = licenses.mit;