3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/awslogs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
974 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, python3
}:
2016-09-07 15:06:21 +01:00
python3.pkgs.buildPythonApplication rec {
2018-08-03 18:52:14 +01:00
pname = "awslogs";
2021-02-22 04:37:42 +00:00
version = "0.14.0";
format = "setuptools";
2016-09-07 15:06:21 +01:00
src = fetchFromGitHub {
owner = "jorgebastida";
repo = pname;
2019-09-09 00:38:31 +01:00
rev = version;
sha256 = "sha256-DrW8s0omQqLp1gaoR6k/YR11afRjUbGYrFtfYhby2b8=";
2016-09-07 15:06:21 +01:00
};
propagatedBuildInputs = with python3.pkgs; [
boto3
termcolor
python-dateutil
docutils
setuptools
jmespath
2021-02-22 04:37:42 +00:00
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "jmespath>=0.7.1,<1.0.0" "jmespath>=0.7.1"
'';
2021-02-22 04:37:42 +00:00
disabledTests = [
"test_main_get_query"
"test_main_get_with_color"
2016-09-07 15:06:21 +01:00
];
pythonImportsCheck = [
"awslogs"
];
meta = with lib; {
2016-09-07 15:06:21 +01:00
description = "AWS CloudWatch logs for Humans";
homepage = "https://github.com/jorgebastida/awslogs";
2016-09-07 15:06:21 +01:00
license = licenses.bsd3;
maintainers = with maintainers; [ dbrock ];
2016-09-07 15:06:21 +01:00
};
}