blob: 8d73aa1c5e20b9e0c390348d8828b4dc044fcfab (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pythonRelaxDepsHook
, sphinx
, beautifulsoup4
, sphinx-basic-ng
}:
buildPythonPackage rec {
pname = "furo";
version = "2023.7.26";
format = "wheel";
disable = pythonOlder "3.7";
src = fetchPypi {
inherit pname version format;
dist = "py3";
python = "py3";
hash = "sha256-HHk2kp7FfF3ezHyF8H+oss5Ta1yJE3dkzKUIvpDhHv0=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"sphinx"
];
propagatedBuildInputs = [
sphinx
beautifulsoup4
sphinx-basic-ng
];
installCheckPhase = ''
# furo was built incorrectly if this directory is empty
# Ignore the hidden file .gitignore
cd "$out/lib/python"*
if [ "$(ls 'site-packages/furo/theme/furo/static/' | wc -l)" -le 0 ]; then
echo 'static directory must not be empty'
exit 1
fi
cd -
'';
pythonImportsCheck = [
"furo"
];
meta = with lib; {
description = "A clean customizable documentation theme for Sphinx";
homepage = "https://github.com/pradyunsg/furo";
changelog = "https://github.com/pradyunsg/furo/blob/${version}/docs/changelog.md";
license = licenses.mit;
maintainers = with maintainers; [ Luflosi ];
};
}
|