Files
nixpkgs/pkgs/development/python-modules/click-repl/default.nix
2025-03-09 07:19:26 +01:00

51 lines
845 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
click,
prompt-toolkit,
six,
# tests
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "click-repl";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "click-contrib";
repo = "click-repl";
tag = version;
hash = "sha256-xCT3w0DDY73dtDL5jbssXM05Zlr44OOcy4vexgHyWiE=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
click
prompt-toolkit
six
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/click-contrib/click-repl";
description = "Subcommand REPL for click apps";
license = licenses.mit;
maintainers = with maintainers; [ twey ];
};
}