nixpkgs/pkgs/development/python-modules/xmlschema/default.nix
2021-10-21 06:42:08 +00:00

54 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, elementpath
, lxml
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
version = "1.8.1";
pname = "xmlschema";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "sissaschool";
repo = "xmlschema";
rev = "v${version}";
sha256 = "0vs4d9bnms4krxvplzf2p69g673pdw31z8p5alzj3pqnaw83rg1z";
};
propagatedBuildInputs = [
elementpath
];
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
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 ];
};
}