summary refs log tree commit diff
path: root/pkgs/development/python-modules/questionary/default.nix
blob: e0b549dd6dcb51b6e7bc60ac8607d76b3260b44f (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
50
51
52
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, prompt-toolkit
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "questionary";
  version = "unstable-2022-07-27";
  format = "pyproject";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "tmbo";
    repo = pname;
    rev = "848b040c5b7086ffe75bd92c656e15e94d905146";
    hash = "sha256-W0d1Uoy5JdN3BFfeyk1GG0HBzmgKoBApaGad0UykZaY=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    prompt-toolkit
  ];

  checkInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # TypeError: <lambda>() missing 1 required...
    "test_print_with_style"
  ];

  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 ];
  };
}