blob: 5aa69c47beb2e0b16ed96f3e4cd5d31698af7b4d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, sphinx
, importlib-resources
}:
buildPythonPackage rec {
pname = "sphinx-jupyterbook-latex";
version = "0.5.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit version;
pname = "sphinx_jupyterbook_latex";
sha256 = "sha256-QErSEpolSEkJaQLzfcF0oDlugEhN5Y9/KwVwC2IknLY=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "sphinx>=3,<5" "sphinx>=3"
'';
propagatedBuildInputs = [ sphinx ]
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
pythonImportsCheck = [ "sphinx_jupyterbook_latex" ];
meta = with lib; {
description = "Latex specific features for jupyter book";
homepage = "https://github.com/executablebooks/sphinx-jupyterbook-latex";
license = licenses.bsd3;
maintainers = with maintainers; [ marsam ];
};
}
|