depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-jupyterbook-latex/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00: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 = [ ];
};
}