Files
nixpkgs/pkgs/development/python-modules/inquirer/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# native
poetry-core,
# propagated
blessed,
editor,
readchar,
# tests
pytest-mock,
pytestCheckHook,
pexpect,
}:
buildPythonPackage rec {
pname = "inquirer";
version = "3.4.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "magmax";
repo = "python-inquirer";
tag = "v${version}";
hash = "sha256-xVHmdJGN5yOxbEkZIiOLqeUwcfdj+o7jTTWBD75szII=";
};
build-system = [ poetry-core ];
dependencies = [
blessed
editor
readchar
];
nativeCheckInputs = [
pexpect
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "inquirer" ];
meta = {
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mmahut ];
};
}