1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pick";
12 version = "2.4.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "wong2";
19 repo = "pick";
20 tag = "v${version}";
21 hash = "sha256-SnH37n0MCjO60IU6kUPxJkIC5vBCVGZXBhFfwvRI/tQ=";
22 };
23
24 build-system = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pick" ];
29
30 meta = with lib; {
31 description = "Module to create curses-based interactive selection list in the terminal";
32 homepage = "https://github.com/wong2/pick";
33 changelog = "https://github.com/wong2/pick/releases/tag/v${version}";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}