nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python3Packages.furo: 2024.8.6 -> 2025.7.19

https://github.com/pradyunsg/furo/blob/2025.7.19/docs/changelog.md

This commit was automatically generated using update-python-libraries.

+53 -26
+53 -26
pkgs/development/python-modules/furo/default.nix
··· 1 1 { 2 2 lib, 3 + buildNpmPackage, 3 4 buildPythonPackage, 4 - pythonOlder, 5 - fetchPypi, 6 - sphinx, 5 + fetchFromGitHub, 6 + flit-core, 7 + accessible-pygments, 7 8 beautifulsoup4, 9 + pygments, 10 + sphinx, 8 11 sphinx-basic-ng, 9 12 }: 10 13 11 - buildPythonPackage rec { 14 + let 12 15 pname = "furo"; 13 - version = "2024.8.6"; 14 - format = "wheel"; 16 + version = "2025.07.19"; 15 17 16 - disabled = pythonOlder "3.8"; 17 - 18 - src = fetchPypi { 19 - inherit pname version format; 20 - dist = "py3"; 21 - python = "py3"; 22 - hash = "sha256-bNl8WLR4E9NhnmPpCBFpiA++Mx8MqIPIcf8fPxGBT1w="; 18 + src = fetchFromGitHub { 19 + owner = "pradyunsg"; 20 + repo = "furo"; 21 + tag = version; 22 + hash = "sha256-pIF5zrh5YbkuSkrateEB/tDULSNbeVn2Qx+Fm3nOYGE="; 23 23 }; 24 + 25 + web = buildNpmPackage { 26 + pname = "${pname}-web"; 27 + inherit version src; 28 + 29 + npmDepsHash = "sha256-dcdHoyqF9zC/eKtEqMho7TK2E1KIvoXo0iwSPTzj+Kw="; 30 + 31 + installPhase = '' 32 + pushd src/furo/theme/furo/static 33 + mkdir $out 34 + cp -rv scripts styles $out/ 35 + popd 36 + ''; 37 + }; 38 + in 39 + 40 + buildPythonPackage rec { 41 + inherit pname version src; 42 + pyproject = true; 43 + 44 + postPatch = '' 45 + # build with boring backend that does not manage a node env 46 + substituteInPlace pyproject.toml \ 47 + --replace-fail "sphinx-theme-builder >= 0.2.0a10" "flit-core" \ 48 + --replace-fail "sphinx_theme_builder" "flit_core.buildapi" 49 + 50 + pushd src/furo/theme/furo/static 51 + cp -rv ${web}/{scripts,styles} . 52 + popd 53 + ''; 54 + 55 + build-system = [ flit-core ]; 24 56 25 57 pythonRelaxDeps = [ "sphinx" ]; 26 58 27 - propagatedBuildInputs = [ 28 - sphinx 59 + dependencies = [ 60 + accessible-pygments 29 61 beautifulsoup4 62 + pygments 63 + sphinx 30 64 sphinx-basic-ng 31 65 ]; 32 66 33 - installCheckPhase = '' 34 - # furo was built incorrectly if this directory is empty 35 - # Ignore the hidden file .gitignore 36 - cd "$out/lib/python"* 37 - if [ "$(ls 'site-packages/furo/theme/furo/static/' | wc -l)" -le 0 ]; then 38 - echo 'static directory must not be empty' 39 - exit 1 40 - fi 41 - cd - 42 - ''; 43 - 44 67 pythonImportsCheck = [ "furo" ]; 68 + 69 + passthru = { 70 + inherit web; 71 + }; 45 72 46 73 meta = with lib; { 47 74 description = "Clean customizable documentation theme for Sphinx";