2021-08-18 13:19:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, sphinx
|
|
|
|
, beautifulsoup4
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "furo";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "2022.4.7";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "wheel";
|
2021-08-18 13:19:15 +00:00
|
|
|
disable = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-02-20 05:27:41 +00:00
|
|
|
inherit pname version format;
|
|
|
|
dist = "py3";
|
|
|
|
python = "py3";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-fz49L7l3SDWQ+Oyyws1RG9gmYbecGO+yTelVi8nN8tc=";
|
2021-08-18 13:19:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sphinx
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
|
|
|
|
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 -
|
|
|
|
'';
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|