Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pylatex / default.nix
blob44926587aa33c473228eb4c36db3c5ebba852f1b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , setuptools
6 , ordered-set
7 , pytestCheckHook
8 , matplotlib
9 , quantities
10 , texlive
13 buildPythonPackage rec {
14   pname = "pylatex";
15   version = "1.4.2";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "JelteF";
22     repo = "PyLaTeX";
23     rev = "v${version}";
24     hash = "sha256-gZKMYGMp7bzDY5+Xx9h1AFP4l0Zd936fDfSXyW5lY1k=";
25   };
27   nativeBuildInputs = [
28     setuptools
29   ];
31   propagatedBuildInputs = [ ordered-set ];
33   pythonImportsCheck = [
34     "pylatex"
35     "pylatex.base_classes"
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     matplotlib
41     quantities
42     (texlive.combine { inherit (texlive)
43       scheme-small
44       lastpage
45       collection-fontsrecommended
46     ;})
47   ];
49   meta = with lib; {
50     description = "A Python library for creating LaTeX files and snippets";
51     homepage = "https://jeltef.github.io/PyLaTeX/current/";
52     downloadPage = "https://github.com/JelteF/PyLaTeX/releases";
53     changelog = "https://jeltef.github.io/PyLaTeX/current/changelog.html";
54     license = licenses.mit;
55     maintainers = with maintainers; [ MayNiklas ];
56   };