504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
59 lines
1.2 KiB
Nix
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 ];
|
|
};
|
|
}
|