nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 = "1.10.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "tmbo";
20 repo = pname;
21 rev = version;
22 sha256 = "14k24fq2nmk90iv0k7pnmmdhmk8z261397wg52sfcsccyhpdw3i7";
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 broken = stdenv.isDarwin;
48 description = "Python library to build command line user prompts";
49 homepage = "https://github.com/tmbo/questionary";
50 license = with licenses; [ mit ];
51 maintainers = with maintainers; [ fab ];
52 };
53}