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

View file

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