587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
46 lines
959 B
Nix
46 lines
959 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
elementpath,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
lxml,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xmlschema";
|
|
version = "3.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sissaschool";
|
|
repo = "xmlschema";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-kqaS6h0bJvJQoVa4L2qhkvuZsK4a6vtqek/wWN22R6I=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ elementpath ];
|
|
|
|
nativeCheckInputs = [
|
|
jinja2
|
|
lxml
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "xmlschema" ];
|
|
|
|
meta = with lib; {
|
|
description = "XML Schema validator and data conversion library for Python";
|
|
homepage = "https://github.com/sissaschool/xmlschema";
|
|
changelog = "https://github.com/sissaschool/xmlschema/blob/${src.rev}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|