biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / click-repl / default.nix
blobbd2fad9f192f280e4f19f4fe96807a3c449ab5f3
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # build-system
7   setuptools,
9   # dependencies
10   click,
11   prompt-toolkit,
12   six,
14   # tests
15   pytestCheckHook,
18 buildPythonPackage rec {
19   pname = "click-repl";
20   version = "0.3.0";
21   pyproject = true;
23   src = fetchFromGitHub {
24     owner = "click-contrib";
25     repo = "click-repl";
26     rev = "refs/tags/${version}";
27     hash = "sha256-xCT3w0DDY73dtDL5jbssXM05Zlr44OOcy4vexgHyWiE=";
28   };
30   postPatch = ''
31     sed -i '/--cov=/d' pyproject.toml
32   '';
34   nativeBuildInputs = [ setuptools ];
36   propagatedBuildInputs = [
37     click
38     prompt-toolkit
39     six
40   ];
42   nativeCheckInputs = [ pytestCheckHook ];
44   meta = with lib; {
45     homepage = "https://github.com/click-contrib/click-repl";
46     description = "Subcommand REPL for click apps";
47     license = licenses.mit;
48     maintainers = with maintainers; [ twey ];
49   };