depot/third_party/nixpkgs/pkgs/development/python-modules/inquirer/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# native
poetry-core,
# propagated
blessed,
editor,
readchar,
# tests
pytest-mock,
pytestCheckHook,
pexpect,
}:
buildPythonPackage rec {
pname = "inquirer";
version = "3.2.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub rec {
owner = "magmax";
repo = "python-inquirer";
rev = "refs/tags/v${version}";
hash = "sha256-LsZ2SYgBOKZegk7b9DwForwMA49XvIe+Z6WvI1/YscY=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
blessed
editor
readchar
];
nativeCheckInputs = [
pexpect
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "inquirer" ];
meta = with lib; {
description = "Collection of common interactive command line user interfaces, based on Inquirer.js";
homepage = "https://github.com/magmax/python-inquirer";
changelog = "https://github.com/magmax/python-inquirer/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ mmahut ];
};
}