54 lines
917 B
Nix
54 lines
917 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# native
|
|
, poetry-core
|
|
|
|
# propagated
|
|
, blessed
|
|
, python-editor
|
|
, readchar
|
|
|
|
# tests
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pexpect
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "inquirer";
|
|
version = "2.9.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub rec {
|
|
owner = "magmax";
|
|
repo = "python-inquirer";
|
|
rev = "v${version}";
|
|
sha256 = "sha256:0vdly2k4i7bfcqc8zh2miv9dbpmqvayxk72qn9d4hr7z15wph233";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
blessed
|
|
python-editor
|
|
readchar
|
|
];
|
|
|
|
checkInputs = [
|
|
pexpect
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/magmax/python-inquirer";
|
|
description = "A collection of common interactive command line user interfaces, based on Inquirer.js";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.mmahut ];
|
|
};
|
|
}
|