54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
prompt-toolkit,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "questionary";
|
|
version = "2.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tmbo";
|
|
repo = "questionary";
|
|
tag = version;
|
|
hash = "sha256-r7F5y6KD6zonQGtO/9OuCTMTWdkCdd9aqTgKg6eWp08=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "prompt_toolkit" ];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [ prompt-toolkit ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
ulimit -n 1024
|
|
'';
|
|
|
|
disabledTests = [
|
|
# RuntimeError: no running event loop
|
|
"test_blank_line_fix"
|
|
|
|
# TypeError: Attrs.__new__() missing 1 required positional argument: 'dim'
|
|
# https://github.com/tmbo/questionary/issues/461
|
|
"test_print_with_style"
|
|
];
|
|
|
|
pythonImportsCheck = [ "questionary" ];
|
|
|
|
meta = {
|
|
description = "Python library to build command line user prompts";
|
|
homepage = "https://github.com/tmbo/questionary";
|
|
changelog = "https://github.com/tmbo/questionary/blob/${src.rev}/docs/pages/changelog.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|