depot/third_party/nixpkgs/pkgs/development/python-modules/inquirer/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "magmax";
repo = "python-inquirer";
rev = "refs/tags/v${version}";
hash = "sha256-M4EgQ/DX00CtAXRNvXoVKVWxj1jRpnNdG4qxOv20/MI=";
};
build-system = [ poetry-core ];
dependencies = [
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 ];
};
}