a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, elementpath
|
|
, lxml
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xmlschema";
|
|
version = "2.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sissaschool";
|
|
repo = "xmlschema";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rt7QScg458ezDwktO1QRydmC3XqedX+kPpv6J+JvLzQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
elementpath
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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; {
|
|
description = "XML Schema validator and data conversion library for Python";
|
|
homepage = "https://github.com/sissaschool/xmlschema";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|