2021-01-17 16:00:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry
|
2021-07-22 16:02:31 +01:00
|
|
|
, prompt-toolkit
|
2021-01-17 16:00:45 +00:00
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "questionary";
|
2021-07-22 10:39:52 +01:00
|
|
|
version = "1.10.0";
|
2021-01-17 16:00:45 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmbo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-22 10:39:52 +01:00
|
|
|
sha256 = "14k24fq2nmk90iv0k7pnmmdhmk8z261397wg52sfcsccyhpdw3i7";
|
2021-01-17 16:00:45 +00:00
|
|
|
};
|
|
|
|
|
2021-07-22 10:39:52 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry
|
|
|
|
];
|
2021-01-17 16:00:45 +00:00
|
|
|
|
2021-07-22 10:39:52 +01:00
|
|
|
propagatedBuildInputs = [
|
2021-07-22 16:02:31 +01:00
|
|
|
prompt-toolkit
|
2021-07-22 10:39:52 +01:00
|
|
|
];
|
2021-01-17 16:00:45 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "questionary" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to build command line user prompts";
|
2021-07-22 10:39:52 +01:00
|
|
|
homepage = "https://github.com/tmbo/questionary";
|
2021-01-17 16:00:45 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|