83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, prompt-toolkit
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "questionary";
|
|
version = "unstable-2022-07-27";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tmbo";
|
|
repo = pname;
|
|
rev = "848b040c5b7086ffe75bd92c656e15e94d905146";
|
|
hash = "sha256-W0d1Uoy5JdN3BFfeyk1GG0HBzmgKoBApaGad0UykZaY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
prompt-toolkit
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = lib.optionalString stdenv.isDarwin ''
|
|
ulimit -n 1024
|
|
'';
|
|
|
|
disabledTests = [
|
|
# RuntimeError: no running event loop
|
|
"test_blank_line_fix"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"questionary"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to build command line user prompts";
|
|
homepage = "https://github.com/tmbo/questionary";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|