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.2.4"; 24 format = "pyproject"; 25 26 disabled = pythonOlder "3.7"; 27 28 src = fetchFromGitHub rec { 29 owner = "magmax"; 30 repo = "python-inquirer"; 31 rev = "refs/tags/v${version}"; 32 hash = "sha256-LsZ2SYgBOKZegk7b9DwForwMA49XvIe+Z6WvI1/YscY="; 33 }; 34 35 nativeBuildInputs = [ poetry-core ]; 36 37 propagatedBuildInputs = [ 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 = "A 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/v${version}"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ mmahut ]; 57 }; 58}