2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-12-30 13:39:12 +00:00
|
|
|
, poetry-core
|
2021-08-05 21:33:18 +00:00
|
|
|
, prompt-toolkit
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytestCheckHook
|
2021-12-30 13:39:12 +00:00
|
|
|
, pythonOlder
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "questionary";
|
2021-07-24 12:14:16 +00:00
|
|
|
version = "1.10.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmbo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-24 12:14:16 +00:00
|
|
|
sha256 = "14k24fq2nmk90iv0k7pnmmdhmk8z261397wg52sfcsccyhpdw3i7";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
nativeBuildInputs = [
|
2021-12-30 13:39:12 +00:00
|
|
|
poetry-core
|
2021-07-24 12:14:16 +00:00
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2021-07-24 12:14:16 +00:00
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
# TypeError: <lambda>() missing 1 required...
|
|
|
|
"test_print_with_style"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"questionary"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to build command line user prompts";
|
2021-07-24 12:14:16 +00:00
|
|
|
homepage = "https://github.com/tmbo/questionary";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|