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