9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
46 lines
927 B
Nix
46 lines
927 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, elementpath
|
|
, jinja2
|
|
, lxml
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xmlschema";
|
|
version = "2.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sissaschool";
|
|
repo = "xmlschema";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-0xXA3IguVAyFp5dFvuzAQhzJlGMmNthmPXcja9FYV44=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
elementpath
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
jinja2
|
|
lxml
|
|
pytestCheckHook
|
|
];
|
|
|
|
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;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|