2021-08-18 13:19:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonRelaxDepsHook
|
2021-08-18 13:19:15 +00:00
|
|
|
, sphinx
|
|
|
|
, beautifulsoup4
|
2022-06-26 10:26:21 +00:00
|
|
|
, sphinx-basic-ng
|
2021-08-18 13:19:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "furo";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2023.7.26";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "wheel";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-18 13:19:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-02-20 05:27:41 +00:00
|
|
|
inherit pname version format;
|
|
|
|
dist = "py3";
|
|
|
|
python = "py3";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-HHk2kp7FfF3ezHyF8H+oss5Ta1yJE3dkzKUIvpDhHv0=";
|
2021-08-18 13:19:15 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"sphinx"
|
|
|
|
];
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
|
|
|
beautifulsoup4
|
2022-06-26 10:26:21 +00:00
|
|
|
sphinx-basic-ng
|
2021-08-18 13:19:15 +00:00
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
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 -
|
|
|
|
'';
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"furo"
|
|
|
|
];
|
2021-08-18 13:19:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A clean customizable documentation theme for Sphinx";
|
|
|
|
homepage = "https://github.com/pradyunsg/furo";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/pradyunsg/furo/blob/${version}/docs/changelog.md";
|
2021-08-18 13:19:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
|
|
};
|
|
|
|
}
|