diff --git a/pkgs/development/python-modules/click-shell/default.nix b/pkgs/development/python-modules/click-shell/default.nix index fa95216a3267..5f4536439d3e 100644 --- a/pkgs/development/python-modules/click-shell/default.nix +++ b/pkgs/development/python-modules/click-shell/default.nix @@ -5,14 +5,15 @@ click, pytestCheckHook, pytest-click, + setuptools, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "click-shell"; version = "2.1"; - format = "setuptools"; + pyproject = true; - # PyPi release is missing tests src = fetchFromGitHub { owner = "clarkperkins"; repo = "click-shell"; @@ -20,17 +21,18 @@ buildPythonPackage rec { hash = "sha256-4QpQzg0yFuOFymGiTI+A8o6LyX78iTJMqr0ernYbilI="; }; - propagatedBuildInputs = [ click ]; + build-system = [ setuptools ]; + + dependencies = [ click ]; nativeCheckInputs = [ pytest-click pytestCheckHook + writableTmpDirAsHomeHook ]; pythonImportsCheck = [ "click_shell" ]; - preCheck = "export HOME=$(mktemp -d)"; - meta = with lib; { description = "Extension to click that easily turns your click app into a shell utility"; longDescription = '' @@ -40,6 +42,7 @@ buildPythonPackage rec { with command completion to any click app. ''; homepage = "https://github.com/clarkperkins/click-shell"; + changelog = "https://github.com/clarkperkins/click-shell/releases/tag/${src.tag}"; license = licenses.bsd3; maintainers = with maintainers; [ binsky ]; };