1{ stdenv
2, lib
3, buildPythonPackage
4, fetchFromGitHub
5, poetry-core
6, prompt-toolkit
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "questionary";
13 version = "unstable-2022-07-27";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "tmbo";
20 repo = pname;
21 rev = "848b040c5b7086ffe75bd92c656e15e94d905146";
22 hash = "sha256-W0d1Uoy5JdN3BFfeyk1GG0HBzmgKoBApaGad0UykZaY=";
23 };
24
25 nativeBuildInputs = [
26 poetry-core
27 ];
28
29 propagatedBuildInputs = [
30 prompt-toolkit
31 ];
32
33 checkInputs = [
34 pytestCheckHook
35 ];
36
37 disabledTests = [
38 # TypeError: <lambda>() missing 1 required...
39 "test_print_with_style"
40 ];
41
42 pythonImportsCheck = [
43 "questionary"
44 ];
45
46 meta = with lib; {
47 description = "Python library to build command line user prompts";
48 homepage = "https://github.com/tmbo/questionary";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ fab ];
51 };
52}