1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "pick";
11 version = "2.1.0";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "wong2";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 sha256 = "sha256-rpUcWMVshlAhprvySqJJjVXpq92ITuhlV+DNwTXSfMc=";
21 };
22
23 nativeBuildInputs = [
24 poetry-core
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "pick"
33 ];
34
35 meta = with lib; {
36 description = "Module to create curses-based interactive selection list in the terminal";
37 homepage = "https://github.com/wong2/pick";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}