b41113241d
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, sphinx
|
|
, beautifulsoup4
|
|
, sphinx-basic-ng
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "furo";
|
|
version = "2022.9.15";
|
|
format = "wheel";
|
|
|
|
disable = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version format;
|
|
dist = "py3";
|
|
python = "py3";
|
|
hash = "sha256-kSnerR916ftPpAdhLx1aDQMgdn5hVsklqv4282L5sRo=";
|
|
};
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
};
|
|
}
|