f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
crashtest,
|
|
poetry-core,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
rapidfuzz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cleo";
|
|
version = "2.1.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-poetry";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-reo/7aPFU5uvZ1YPRTJDRmcMSMFru8e5ss5YmjSe3QU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
pythonRelaxDeps = [ "rapidfuzz" ];
|
|
|
|
propagatedBuildInputs = [
|
|
crashtest
|
|
rapidfuzz
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cleo"
|
|
"cleo.application"
|
|
"cleo.commands.command"
|
|
"cleo.helpers"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|