mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
python3Packages.PyLaTeX: init at 1.4.2
This commit is contained in:
parent
066f0e004c
commit
20172d624e
57
pkgs/development/python-modules/pylatex/default.nix
Normal file
57
pkgs/development/python-modules/pylatex/default.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{ 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 = "A 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -9130,6 +9130,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
pylast = callPackage ../development/python-modules/pylast { };
|
pylast = callPackage ../development/python-modules/pylast { };
|
||||||
|
|
||||||
|
pylatex = callPackage ../development/python-modules/pylatex { };
|
||||||
|
|
||||||
pylatexenc = callPackage ../development/python-modules/pylatexenc { };
|
pylatexenc = callPackage ../development/python-modules/pylatexenc { };
|
||||||
|
|
||||||
pylaunches = callPackage ../development/python-modules/pylaunches { };
|
pylaunches = callPackage ../development/python-modules/pylaunches { };
|
||||||
|
Loading…
Reference in New Issue
Block a user