summary refs log tree commit diff
path: root/pkgs/development/python-modules/questionary/default.nix
blob: d7f93b3a47e505cea1ebefd5506fb9c150c0815d (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry
, prompt_toolkit
, pytest-cov
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "questionary";
  version = "1.10.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "tmbo";
    repo = pname;
    rev = version;
    sha256 = "14k24fq2nmk90iv0k7pnmmdhmk8z261397wg52sfcsccyhpdw3i7";
  };

  nativeBuildInputs = [
    poetry
  ];

  propagatedBuildInputs = [
    prompt_toolkit
  ];

  checkInputs = [
    pytest-cov
    pytestCheckHook
  ];

  pythonImportsCheck = [ "questionary" ];

  meta = with lib; {
    description = "Python library to build command line user prompts";
    homepage = "https://github.com/tmbo/questionary";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}