nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 packaging,
7 sphinx,
8 click,
9 myst-parser,
10 pytest-regressions,
11 pytestCheckHook,
12 sphinx-external-toc,
13 sphinxcontrib-bibtex,
14 texsoup,
15 defusedxml,
16}:
17
18buildPythonPackage rec {
19 pname = "sphinx-jupyterbook-latex";
20 version = "1.0.0";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "executablebooks";
25 repo = "sphinx-jupyterbook-latex";
26 tag = "v${version}";
27 hash = "sha256-ZTR+s6a/++xXrLMtfFRmSmAeMWa/1de12ukxfsx85g4=";
28 };
29
30 nativeBuildInputs = [ flit-core ];
31
32 propagatedBuildInputs = [
33 packaging
34 sphinx
35 ];
36
37 pythonImportsCheck = [ "sphinx_jupyterbook_latex" ];
38
39 nativeCheckInputs = [
40 click
41 myst-parser
42 pytest-regressions
43 pytestCheckHook
44 sphinx-external-toc
45 sphinxcontrib-bibtex
46 texsoup
47 defusedxml
48 ];
49
50 meta = {
51 description = "Latex specific features for jupyter book";
52 homepage = "https://github.com/executablebooks/sphinx-jupyterbook-latex";
53 changelog = "https://github.com/executablebooks/sphinx-jupyterbook-latex/raw/v${version}/CHANGELOG.md";
54 license = lib.licenses.bsd3;
55 maintainers = [ ];
56 };
57}