2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "awslogs";
|
2021-02-22 21:28:39 +00:00
|
|
|
version = "0.14.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jorgebastida";
|
2022-04-27 09:35:20 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-DrW8s0omQqLp1gaoR6k/YR11afRjUbGYrFtfYhby2b8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
boto3
|
|
|
|
termcolor
|
|
|
|
python-dateutil
|
|
|
|
docutils
|
|
|
|
setuptools
|
|
|
|
jmespath
|
2021-02-22 21:28:39 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2023-03-15 16:39:30 +00:00
|
|
|
--replace "jmespath>=0.7.1,<1.0.0" "jmespath>=0.7.1" \
|
|
|
|
--replace '>=3.5.*' '>=3.5'
|
2022-04-27 09:35:20 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_main_get_query"
|
|
|
|
"test_main_get_with_color"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"awslogs"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "AWS CloudWatch logs for Humans";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "awslogs";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/jorgebastida/awslogs";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ dbrock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|