1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry
5, prompt-toolkit
6, pytest-cov
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "questionary";
12 version = "1.10.0";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "tmbo";
17 repo = pname;
18 rev = version;
19 sha256 = "14k24fq2nmk90iv0k7pnmmdhmk8z261397wg52sfcsccyhpdw3i7";
20 };
21
22 nativeBuildInputs = [
23 poetry
24 ];
25
26 propagatedBuildInputs = [
27 prompt-toolkit
28 ];
29
30 checkInputs = [
31 pytest-cov
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "questionary" ];
36
37 meta = with lib; {
38 description = "Python library to build command line user prompts";
39 homepage = "https://github.com/tmbo/questionary";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}