depot/third_party/nixpkgs/pkgs/development/python-modules/click-repl/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

50 lines
877 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
click,
prompt-toolkit,
six,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "click-repl";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "click-contrib";
repo = "click-repl";
rev = "refs/tags/${version}";
hash = "sha256-xCT3w0DDY73dtDL5jbssXM05Zlr44OOcy4vexgHyWiE=";
};
postPatch = ''
sed -i '/--cov=/d' pyproject.toml
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
click
prompt-toolkit
six
];
nativeCheckInputs = [ 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 ];
};
}