mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
6592c2723f
Diff: https://github.com/magmax/python-inquirer/compare/refs/tags/v3.1.2...v3.1.3 Changelog: https://github.com/magmax/python-inquirer/releases/tag/v3.1.3
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
|
|
# native
|
|
, poetry-core
|
|
|
|
# propagated
|
|
, blessed
|
|
, python-editor
|
|
, readchar
|
|
|
|
# tests
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pexpect
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "inquirer";
|
|
version = "3.1.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub rec {
|
|
owner = "magmax";
|
|
repo = "python-inquirer";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-7GfHsCQgnDUdiM1z9YNdDuwMNy6rLjR1UTnZMgpQ5k4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
blessed
|
|
python-editor
|
|
readchar
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pexpect
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
|
|
pythonImportsCheck = [
|
|
"inquirer"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A 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 ];
|
|
};
|
|
}
|