at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 7 # native 8 poetry-core, 9 10 # propagated 11 blessed, 12 editor, 13 readchar, 14 15 # tests 16 pytest-mock, 17 pytestCheckHook, 18 pexpect, 19}: 20 21buildPythonPackage rec { 22 pname = "inquirer"; 23 version = "3.4.1"; 24 pyproject = true; 25 26 disabled = pythonOlder "3.8"; 27 28 src = fetchFromGitHub { 29 owner = "magmax"; 30 repo = "python-inquirer"; 31 tag = "v${version}"; 32 hash = "sha256-xVHmdJGN5yOxbEkZIiOLqeUwcfdj+o7jTTWBD75szII="; 33 }; 34 35 build-system = [ poetry-core ]; 36 37 dependencies = [ 38 blessed 39 editor 40 readchar 41 ]; 42 43 nativeCheckInputs = [ 44 pexpect 45 pytest-mock 46 pytestCheckHook 47 ]; 48 49 pythonImportsCheck = [ "inquirer" ]; 50 51 meta = with lib; { 52 description = "Collection of common interactive command line user interfaces, based on Inquirer.js"; 53 homepage = "https://github.com/magmax/python-inquirer"; 54 changelog = "https://github.com/magmax/python-inquirer/releases/tag/${src.tag}"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ mmahut ]; 57 }; 58}