depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-jupyterbook-latex/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

59 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
}:
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
];
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; [ marsam ];
};
}