lol
1{ lib
2, fetchFromGitHub
3, python3
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "awslogs";
8 version = "0.14.0";
9 format = "setuptools";
10
11 src = fetchFromGitHub {
12 owner = "jorgebastida";
13 repo = pname;
14 rev = version;
15 sha256 = "sha256-DrW8s0omQqLp1gaoR6k/YR11afRjUbGYrFtfYhby2b8=";
16 };
17
18 propagatedBuildInputs = with python3.pkgs; [
19 boto3
20 termcolor
21 python-dateutil
22 docutils
23 setuptools
24 jmespath
25 ];
26
27 nativeCheckInputs = with python3.pkgs; [
28 pytestCheckHook
29 ];
30
31 postPatch = ''
32 substituteInPlace setup.py \
33 --replace "jmespath>=0.7.1,<1.0.0" "jmespath>=0.7.1" \
34 --replace '>=3.5.*' '>=3.5'
35 '';
36
37 disabledTests = [
38 "test_main_get_query"
39 "test_main_get_with_color"
40 ];
41
42 pythonImportsCheck = [
43 "awslogs"
44 ];
45
46 meta = with lib; {
47 description = "AWS CloudWatch logs for Humans";
48 mainProgram = "awslogs";
49 homepage = "https://github.com/jorgebastida/awslogs";
50 license = licenses.bsd3;
51 maintainers = with maintainers; [ dbrock ];
52 };
53}