summary refs log tree commit diff
path: root/pkgs/development/python-modules/typer/default.nix
blob: 61adcf9254ff6b9acb52aff77fdf9871a48f88a0 (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
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, buildPythonPackage
, fetchPypi
, click
, pytestCheckHook
, shellingham
, pytestcov
, pytest_xdist
, pytest-sugar
, coverage
, mypy
, black
, isort
}:

buildPythonPackage rec {
  pname = "typer";
  version = "0.3.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal";
  };

  propagatedBuildInputs = [ click ];

  checkInputs = [
    pytestCheckHook
    pytestcov
    pytest_xdist
    pytest-sugar
    shellingham
    coverage
    mypy
    black
    isort
  ];
  pytestFlagsArray = [
    "--ignore=tests/test_completion/test_completion.py"
    "--ignore=tests/test_completion/test_completion_install.py"
  ];

  meta = with lib; {
    homepage = "https://typer.tiangolo.com/";
    description = "Typer, build great CLIs. Easy to code. Based on Python type hints.";
    license = licenses.mit;
    maintainers = [ maintainers.winpat ];
  };
}