depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-jupyterbook-latex/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

60 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
flit-core,
packaging,
sphinx,
click,
myst-parser,
pytest-regressions,
pytestCheckHook,
sphinx-external-toc,
sphinxcontrib-bibtex,
texsoup,
defusedxml,
}:
buildPythonPackage rec {
pname = "sphinx-jupyterbook-latex";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "executablebooks";
repo = "sphinx-jupyterbook-latex";
rev = "refs/tags/v${version}";
hash = "sha256-ZTR+s6a/++xXrLMtfFRmSmAeMWa/1de12ukxfsx85g4=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
packaging
sphinx
];
pythonImportsCheck = [ "sphinx_jupyterbook_latex" ];
nativeCheckInputs = [
click
myst-parser
pytest-regressions
pytestCheckHook
sphinx-external-toc
sphinxcontrib-bibtex
texsoup
defusedxml
];
meta = with lib; {
description = "Latex specific features for jupyter book";
homepage = "https://github.com/executablebooks/sphinx-jupyterbook-latex";
changelog = "https://github.com/executablebooks/sphinx-jupyterbook-latex/raw/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}