2022-09-14 02:10:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, crashtest
|
|
|
|
, poetry-core
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
2022-11-28 04:13:26 +00:00
|
|
|
, rapidfuzz
|
2022-09-14 02:10:54 +00:00
|
|
|
}:
|
2019-01-07 17:13:19 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cleo";
|
2022-11-28 04:13:26 +00:00
|
|
|
version = "2.0.1";
|
2022-09-14 02:10:54 +00:00
|
|
|
format = "pyproject";
|
2019-01-07 17:13:19 +00:00
|
|
|
|
2022-09-14 02:10:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-poetry";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2022-11-28 04:13:26 +00:00
|
|
|
hash = "sha256-y9PYlGSPLpZl9Ad2AFuDKIopH0LRETLp35aiZtLcXzM=";
|
2019-01-07 17:13:19 +00:00
|
|
|
};
|
|
|
|
|
2022-09-14 02:10:54 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2019-01-07 17:13:19 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-09-14 02:10:54 +00:00
|
|
|
crashtest
|
2022-11-28 04:13:26 +00:00
|
|
|
rapidfuzz
|
2019-01-07 17:13:19 +00:00
|
|
|
];
|
|
|
|
|
2022-09-14 02:10:54 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cleo"
|
|
|
|
"cleo.application"
|
|
|
|
"cleo.commands.command"
|
|
|
|
"cleo.helpers"
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-14 02:10:54 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-01-07 17:13:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-14 02:10:54 +00:00
|
|
|
homepage = "https://github.com/python-poetry/cleo";
|
2022-11-28 04:13:26 +00:00
|
|
|
changelog = "https://github.com/python-poetry/cleo/blob/${src.rev}/CHANGELOG.md";
|
2019-01-07 17:13:19 +00:00
|
|
|
description = "Allows you to create beautiful and testable command-line interfaces";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|