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";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.15.0";
|
|
|
|
pyproject = true;
|
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;
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-o6xZqwlqAy01P+TZ0rB5rpEddWNUBzzHp7/cycpcwes=";
|
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
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2024-06-05 15:53:02 +00:00
|
|
|
--replace "boto3>=1.34.75" "boto3>=1.34.58" \
|
2022-04-27 09:35:20 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
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
|
|
|
};
|
|
|
|
}
|