a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
51 lines
1,008 B
Nix
51 lines
1,008 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, crashtest
|
|
, poetry-core
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, rapidfuzz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cleo";
|
|
version = "2.0.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-poetry";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-y9PYlGSPLpZl9Ad2AFuDKIopH0LRETLp35aiZtLcXzM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
crashtest
|
|
rapidfuzz
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cleo"
|
|
"cleo.application"
|
|
"cleo.commands.command"
|
|
"cleo.helpers"
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/python-poetry/cleo";
|
|
changelog = "https://github.com/python-poetry/cleo/blob/${src.rev}/CHANGELOG.md";
|
|
description = "Allows you to create beautiful and testable command-line interfaces";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
};
|
|
}
|