2025-06-02 05:56:42 +02:00

51 lines
1013 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-timeout,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
setuptools,
setuptools-scm,
bashInteractive,
}:
buildPythonPackage rec {
pname = "shtab";
version = "1.7.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "iterative";
repo = "shtab";
tag = "v${version}";
hash = "sha256-8bAwLSdJCzFw5Vf9CKBrH5zOoojeXds7aIRncl+sLBI=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
bashInteractive
pytest-timeout
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "shtab" ];
meta = with lib; {
description = "Module for shell tab completion of Python CLI applications";
mainProgram = "shtab";
homepage = "https://docs.iterative.ai/shtab/";
changelog = "https://github.com/iterative/shtab/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}