about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cliche/default.nix
blob: e0657336a0936f6b66326555cb934558d22c0406 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, ipdb
, pytestCheckHook
}:

buildPythonPackage {
  pname = "cliche";
  version = "0.10.108";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "kootenpv";
    repo = "cliche";
    rev = "80a9ae2e90f4493880b669d5db51f1d4038589df"; # no tags
    sha256 = "sha256-7/icSneLQzwdkRL/mS4RjsgnKa6YIVvGCmdS6pB6r5Y=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "ipdb == 0.13.9" "ipdb"
  '';

  propagatedBuildInputs = [ ipdb ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cliche" ];

  meta = with lib; {
    description = "Build a simple command-line interface from your functions :computer:";
    homepage = "https://github.com/kootenpv/cliche";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}