Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pick"; 12 version = "2.3.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "wong2"; 19 repo = "pick"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-6bkV9XEum5kbANqv/Xth+taCUl4nmuWskucq4jmV+Lc="; 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}