depot/third_party/nixpkgs/pkgs/development/python-modules/inquirerpy/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pfzy,
poetry-core,
prompt-toolkit,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "inquirerpy";
version = "0.3.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kazhala";
repo = "InquirerPy";
rev = "refs/tags/${version}";
hash = "sha256-Ap0xZHEU458tjm6oEN5EtDoSRlnpZ7jvDq1L7fTlQQc=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
pfzy
prompt-toolkit
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "InquirerPy" ];
disabledTestPaths = [
# AttributeError: '_GeneratorContextManager' object has no attribute 'close'
"tests/prompts/"
"tests/base/test_simple.py"
"tests/base/test_complex.py"
"tests/base/test_list.py"
];
meta = with lib; {
description = "Python port of Inquirer.js";
homepage = "https://github.com/kazhala/InquirerPy";
changelog = "https://github.com/kazhala/InquirerPy/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}