1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 click,
11 prompt-toolkit,
12 six,
13
14 # tests
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "click-repl";
20 version = "0.3.0";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "click-contrib";
25 repo = "click-repl";
26 rev = "refs/tags/${version}";
27 hash = "sha256-xCT3w0DDY73dtDL5jbssXM05Zlr44OOcy4vexgHyWiE=";
28 };
29
30 postPatch = ''
31 sed -i '/--cov=/d' pyproject.toml
32 '';
33
34 nativeBuildInputs = [ setuptools ];
35
36 propagatedBuildInputs = [
37 click
38 prompt-toolkit
39 six
40 ];
41
42 nativeCheckInputs = [ pytestCheckHook ];
43
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 };
50}