blob: e29989fdb866800ce69d14141844fed7170da58f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
crashtest,
poetry-core,
pytest-mock,
pytestCheckHook,
pythonRelaxDepsHook,
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
pythonRelaxDepsHook
];
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 ];
};
}
|