mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "awslogs";
|
|
version = "0.14.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jorgebastida";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-DrW8s0omQqLp1gaoR6k/YR11afRjUbGYrFtfYhby2b8=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
boto3
|
|
termcolor
|
|
python-dateutil
|
|
docutils
|
|
setuptools
|
|
jmespath
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "jmespath>=0.7.1,<1.0.0" "jmespath>=0.7.1" \
|
|
--replace '>=3.5.*' '>=3.5'
|
|
'';
|
|
|
|
disabledTests = [
|
|
"test_main_get_query"
|
|
"test_main_get_with_color"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"awslogs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "AWS CloudWatch logs for Humans";
|
|
mainProgram = "awslogs";
|
|
homepage = "https://github.com/jorgebastida/awslogs";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dbrock ];
|
|
};
|
|
}
|