Files
nixpkgs/pkgs/development/python-modules/cleo/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
crashtest,
poetry-core,
pytest-mock,
pytestCheckHook,
rapidfuzz,
}:
buildPythonPackage rec {
pname = "cleo";
version = "2.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "python-poetry";
repo = "cleo";
tag = version;
hash = "sha256-+OvE09hbF6McdXpXdv5UBdZ0LiSOTL8xyE/+bBNIFNk=";
};
nativeBuildInputs = [
poetry-core
];
pythonRelaxDeps = [ "rapidfuzz" ];
propagatedBuildInputs = [
crashtest
rapidfuzz
];
pythonImportsCheck = [
"cleo"
"cleo.application"
"cleo.commands.command"
"cleo.helpers"
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ jakewaksbaum ];
};
}