nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 ordered-set, 7 pytestCheckHook, 8 matplotlib, 9 quantities, 10 texlive, 11}: 12 13buildPythonPackage rec { 14 pname = "pylatex"; 15 version = "1.4.2"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "JelteF"; 20 repo = "PyLaTeX"; 21 rev = "v${version}"; 22 hash = "sha256-gZKMYGMp7bzDY5+Xx9h1AFP4l0Zd936fDfSXyW5lY1k="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ ordered-set ]; 28 29 pythonImportsCheck = [ 30 "pylatex" 31 "pylatex.base_classes" 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 matplotlib 37 quantities 38 (texlive.combine { inherit (texlive) scheme-small lastpage collection-fontsrecommended; }) 39 ]; 40 41 meta = { 42 description = "Python library for creating LaTeX files and snippets"; 43 homepage = "https://jeltef.github.io/PyLaTeX/current/"; 44 downloadPage = "https://github.com/JelteF/PyLaTeX/releases"; 45 changelog = "https://jeltef.github.io/PyLaTeX/current/changelog.html"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ MayNiklas ]; 48 }; 49}