Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pick / default.nix
blob9292ffd76fdf61e55d28a2d35a9170d659cbecf3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "pick";
11   version = "2.2.0";
12   format = "pyproject";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "wong2";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-Py+D03bXnVsIwvYwjl0IMeH33ZPJW5TuJ3tU79MMsCw=";
21   };
23   nativeBuildInputs = [
24     poetry-core
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "pick"
33   ];
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     changelog = "https://github.com/wong2/pick/releases/tag/v${version}";
39     license = with licenses; [ mit ];
40     maintainers = with maintainers; [ fab ];
41   };