1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, poetry-dynamic-versioning 6, sphinx 7}: 8 9buildPythonPackage rec { 10 pname = "sphinx-prompt"; 11 version = "1.7.0"; # read before updating past 1.7.0 https://github.com/sbrunner/sphinx-prompt/issues/398 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "sbrunner"; 16 repo = "sphinx-prompt"; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-/XxUSsW8Bowks7P+d6iTlklyMIfTb2otXva/VtRVAkM="; 19 }; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace '"poetry-plugin-tweak-dependencies-version", ' "" 24 ''; 25 26 nativeBuildInputs = [ 27 poetry-core 28 poetry-dynamic-versioning 29 ]; 30 31 propagatedBuildInputs = [ sphinx ]; 32 33 meta = with lib; { 34 description = "A sphinx extension for creating unselectable prompt"; 35 homepage = "https://github.com/sbrunner/sphinx-prompt"; 36 license = licenses.bsd3; 37 maintainers = with maintainers; [ kaction ]; 38 }; 39}