depot/third_party/nixpkgs/pkgs/development/python-modules/inquirer/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

53 lines
919 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# native
, poetry-core
# propagated
, blessed
, python-editor
, readchar
# tests
, pytest-mock
, pytestCheckHook
, pexpect
}:
buildPythonPackage rec {
pname = "inquirer";
version = "3.1.1";
format = "pyproject";
src = fetchFromGitHub rec {
owner = "magmax";
repo = "python-inquirer";
rev = "refs/tags/v${version}";
sha256 = "sha256-gDJqD0IHshyGw9MmMtYjkkpvYklRLgPd6EtLVqi2I/o=";
};
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 ];
};
}