Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions pkgs/development/python-modules/furo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,32 @@
buildPythonPackage rec {
pname = "furo";
version = "2022.1.2";
format = "flit";
format = "wheel";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not ideal, but better than having to do the node packaging ourselves.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't know what else to do.

disable = pythonOlder "3.6";

src = fetchPypi {
inherit pname version;
sha256 = "b217f218cbcd423ffbfe69baa79389d4ecebf2d86f0d593c44ef31da7b5aed30";
inherit pname version format;
dist = "py3";
python = "py3";
sha256 = "sha256-lYAWv+E4fB6N31udcWlracTqpc2K/JSSq/sAirotMAw=";
};

propagatedBuildInputs = [
sphinx
beautifulsoup4
];

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; {
Expand Down