Merge pull request #44340 from shmish111/es-curator
nixos/curator: init elasticsearch curator
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, boto3
|
||||
, click
|
||||
, certifi
|
||||
, requests-aws4auth
|
||||
, voluptuous
|
||||
, pyyaml
|
||||
, elasticsearch
|
||||
@@ -22,17 +24,17 @@ buildPythonPackage rec {
|
||||
sha256 = "e75abeb7f7be939b1c64c071898760dc10ab5f08307c253fc074abf8a41a76f0";
|
||||
};
|
||||
|
||||
# The integration tests require a running elasticsearch cluster.
|
||||
postUnpackPhase = ''
|
||||
rm -r test/integration
|
||||
'';
|
||||
# The test hangs so we disable it.
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
certifi
|
||||
requests-aws4auth
|
||||
voluptuous
|
||||
pyyaml
|
||||
elasticsearch
|
||||
boto3
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchzip, isPy3k, requests }:
|
||||
with lib;
|
||||
buildPythonPackage rec {
|
||||
pname = "requests-aws4auth";
|
||||
version = "0.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0g52a1pm53aqkc9qb5q1m918c1qy6q47c1qz63p5ilynfbs3m5y9";
|
||||
};
|
||||
|
||||
postPatch = optionalString isPy3k ''
|
||||
sed "s/path_encoding_style/'path_encoding_style'/" \
|
||||
-i requests_aws4auth/service_parameters.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
# The test fail on Python >= 3 because of module import errors.
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = {
|
||||
description = "Amazon Web Services version 4 authentication for the Python Requests library.";
|
||||
homepage = https://github.com/sam-washington/requests-aws4auth;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.basvandijk ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user