2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry
|
|
|
|
, prompt_toolkit
|
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
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 = [
|
|
|
|
poetry
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
prompt_toolkit
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "questionary" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|