Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / xmlschema / default.nix
bloba8e595e4979235c016f31fd246ca33bb15e88d5a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , elementpath
5 , jinja2
6 , lxml
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "xmlschema";
13   version = "2.5.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "sissaschool";
20     repo = "xmlschema";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-ETWD+i0VJbmfSHFvOsRkuzScKZdEyr6It3+U5Q7cQbQ=";
23   };
25   propagatedBuildInputs = [
26     elementpath
27   ];
29   nativeCheckInputs = [
30     jinja2
31     lxml
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [
36     "xmlschema"
37   ];
39   meta = with lib; {
40     changelog = "https://github.com/sissaschool/xmlschema/blob/${src.rev}/CHANGELOG.rst";
41     description = "XML Schema validator and data conversion library for Python";
42     homepage = "https://github.com/sissaschool/xmlschema";
43     license = licenses.mit;
44     maintainers = with maintainers; [ jonringer ];
45   };