Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, pythonImportsCheckHook 6# documentation build dependencies 7, sphinxHook 8, sphinx-prompt 9, sphinx-rtd-theme 10, sphinx-tabs 11, sphinx-autoapi 12, sphinxemoji 13# runtime dependencies 14, sphinx 15}: 16 17buildPythonPackage rec { 18 pname = "sphinx-notfound-page"; 19 version = "0.8.3"; 20 format = "flit"; 21 outputs = [ "out" "doc" ]; 22 23 src = fetchFromGitHub { 24 owner = "readthedocs"; 25 repo = "sphinx-notfound-page"; 26 rev = version; 27 hash = "sha256-9iP6X2dqtMC3+CIrNI3fGDLL8xyXVAWNhN90DlMa9JU="; 28 }; 29 30 nativeBuildInputs = [ 31 flit-core 32 pythonImportsCheckHook 33 sphinxHook 34 sphinx-prompt 35 sphinx-rtd-theme 36 sphinx-tabs 37 sphinx-autoapi 38 sphinxemoji 39 ]; 40 41 propagatedBuildInputs = [ sphinx ]; 42 43 pythonImportsCheck = [ "notfound" ]; 44 45 meta = with lib; { 46 description = "A sphinx extension to create a custom 404 page with absolute URLs hardcoded"; 47 homepage = "https://github.com/readthedocs/sphinx-notfound-page"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ kaction ]; 50 }; 51}