depot/third_party/nixpkgs/pkgs/development/python-modules/pylatex/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
ordered-set,
pytestCheckHook,
matplotlib,
quantities,
texlive,
}:
buildPythonPackage rec {
pname = "pylatex";
version = "1.4.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "JelteF";
repo = "PyLaTeX";
rev = "v${version}";
hash = "sha256-gZKMYGMp7bzDY5+Xx9h1AFP4l0Zd936fDfSXyW5lY1k=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ ordered-set ];
pythonImportsCheck = [
"pylatex"
"pylatex.base_classes"
];
nativeCheckInputs = [
pytestCheckHook
matplotlib
quantities
(texlive.combine { inherit (texlive) scheme-small lastpage collection-fontsrecommended; })
];
meta = with lib; {
description = "Python library for creating LaTeX files and snippets";
homepage = "https://jeltef.github.io/PyLaTeX/current/";
downloadPage = "https://github.com/JelteF/PyLaTeX/releases";
changelog = "https://jeltef.github.io/PyLaTeX/current/changelog.html";
license = licenses.mit;
maintainers = with maintainers; [ MayNiklas ];
};
}