depot/third_party/nixpkgs/pkgs/development/python-modules/xmlschema/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

46 lines
959 B
Nix

{
lib,
buildPythonPackage,
elementpath,
fetchFromGitHub,
jinja2,
lxml,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "xmlschema";
version = "3.3.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sissaschool";
repo = "xmlschema";
rev = "refs/tags/v${version}";
hash = "sha256-Sy70OQvKx0H8vxRFTEkg+QV9eVij5C9dlAwJ2HTFOi8=";
};
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 ];
};
}