diff --git a/pkgs/development/python-modules/sphinx-prompt/default.nix b/pkgs/development/python-modules/sphinx-prompt/default.nix index 40bcd6d0603a..46c13eadfca1 100644 --- a/pkgs/development/python-modules/sphinx-prompt/default.nix +++ b/pkgs/development/python-modules/sphinx-prompt/default.nix @@ -28,6 +28,10 @@ buildPythonPackage rec { hash = "sha256-JKCTn2YkdyGLvchMT9C61PxjYxuQFzt3SjCE9JvgtVc="; }; + postPatch = '' + substituteInPlace pyproject.toml --replace-fail 'version = "0.0.0"' 'version = "${version}"' + ''; + build-system = [ poetry-core poetry-dynamic-versioning @@ -39,9 +43,15 @@ buildPythonPackage rec { sphinx ]; - nativeCheckInputs = [ pytestCheckHook ]; + # upstream pins these unnecessarily in their requirements.txt + pythonRelaxDeps = [ + "certifi" + "requests" + "urllib3" + "zipp" + ]; - pythonRelaxDeps = [ "requests" ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Sphinx extension for creating unselectable prompt";