uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/development/python-modules/furo/default.nix
Normal file
46
pkgs/development/python-modules/furo/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, sphinx
|
||||
, beautifulsoup4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "furo";
|
||||
version = "2022.4.7";
|
||||
format = "wheel";
|
||||
disable = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version format;
|
||||
dist = "py3";
|
||||
python = "py3";
|
||||
sha256 = "sha256-fz49L7l3SDWQ+Oyyws1RG9gmYbecGO+yTelVi8nN8tc=";
|
||||
};
|
||||
|
||||
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; {
|
||||
description = "A clean customizable documentation theme for Sphinx";
|
||||
homepage = "https://github.com/pradyunsg/furo";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ Luflosi ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue