mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
Merge pull request #170208 from fabaff/awslogs-fix
awslogs: relax jmespath constraint
This commit is contained in:
commit
b034794ec0
1 changed files with 30 additions and 9 deletions
|
@ -1,30 +1,51 @@
|
|||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "awslogs";
|
||||
version = "0.14.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jorgebastida";
|
||||
repo = "awslogs";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1gyry8b64psvmjcb2lb3yilpa7b17yllga06svls4hi69arvrd8f";
|
||||
sha256 = "sha256-DrW8s0omQqLp1gaoR6k/YR11afRjUbGYrFtfYhby2b8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
boto3 termcolor python-dateutil docutils setuptools jmespath
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
boto3
|
||||
termcolor
|
||||
python-dateutil
|
||||
docutils
|
||||
setuptools
|
||||
jmespath
|
||||
];
|
||||
|
||||
checkInputs = [ python3Packages.pytestCheckHook ];
|
||||
checkInputs = with python3.pkgs; [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "jmespath>=0.7.1,<1.0.0" "jmespath>=0.7.1"
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"test_main_get_query"
|
||||
"test_main_get_with_color"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"awslogs"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jorgebastida/awslogs";
|
||||
description = "AWS CloudWatch logs for Humans";
|
||||
maintainers = with maintainers; [ dbrock ];
|
||||
homepage = "https://github.com/jorgebastida/awslogs";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ dbrock ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue