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