1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 ipdb,
6 pytestCheckHook,
7}:
8
9buildPythonPackage {
10 pname = "cliche";
11 version = "0.10.108";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "kootenpv";
16 repo = "cliche";
17 rev = "80a9ae2e90f4493880b669d5db51f1d4038589df"; # no tags
18 sha256 = "sha256-7/icSneLQzwdkRL/mS4RjsgnKa6YIVvGCmdS6pB6r5Y=";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace "ipdb == 0.13.9" "ipdb"
24 '';
25
26 propagatedBuildInputs = [ ipdb ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "cliche" ];
31
32 meta = with lib; {
33 description = "Build a simple command-line interface from your functions :computer:";
34 mainProgram = "cliche";
35 homepage = "https://github.com/kootenpv/cliche";
36 license = licenses.mit;
37 maintainers = [ ];
38 };
39}