depot/third_party/nixpkgs/pkgs/development/python-modules/xmlschema/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

46 lines
927 B
Nix

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