python313Packages.click-shell: refactor

This commit is contained in:
Fabian Affolter
2025-08-15 00:12:27 +02:00
parent e3222f1adc
commit c8f4bb8170
@@ -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 ];
};