2022-06-04 03:13:44 +01:00
|
|
|
{ lib, python3, glibcLocales, docker-compose_1 }:
|
2017-09-01 12:51:28 +01:00
|
|
|
let
|
2022-06-04 03:13:44 +01:00
|
|
|
docker_compose = changeVersion (with localPython.pkgs; docker-compose_1.override {
|
2022-02-14 11:28:31 +00:00
|
|
|
inherit colorama pyyaml six dockerpty docker jsonschema requests websocket-client paramiko;
|
|
|
|
}).overridePythonAttrs "1.25.5" "1ijhg93zs3lswkljnm0rhww7gdy0g94psvsya2741prz2zcbcbks";
|
2017-09-01 12:51:28 +01:00
|
|
|
|
2022-02-14 11:28:31 +00:00
|
|
|
changeVersion = overrideFunc: version: sha256: overrideFunc (oldAttrs: rec {
|
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
});
|
2017-09-01 12:51:28 +01:00
|
|
|
|
2022-02-14 11:28:31 +00:00
|
|
|
localPython = python3.override
|
|
|
|
{
|
|
|
|
self = localPython;
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
cement = changeVersion super.cement.overridePythonAttrs "2.8.2" "1li2whjzfhbpg6fjb6r1r92fb3967p1xv6hqs3j787865h2ysrc7";
|
|
|
|
future = changeVersion super.future.overridePythonAttrs "0.16.0" "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773";
|
|
|
|
wcwidth = changeVersion super.wcwidth.overridePythonAttrs "0.1.9" "1wf5ycjx8s066rdvr0fgz4xds9a8zhs91c4jzxvvymm1c8l8cwzf";
|
2022-03-16 00:03:51 +00:00
|
|
|
semantic-version = changeVersion super.semantic-version.overridePythonAttrs "2.8.5" "d2cb2de0558762934679b9a104e82eca7af448c9f4974d1f3eeccff651df8a54";
|
2022-02-14 11:28:31 +00:00
|
|
|
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "5.4.1";
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
PYTHONPATH="tests/lib3:$PYTHONPATH" ${localPython.interpreter} -m test_all
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
src = localPython.pkgs.fetchPypi {
|
|
|
|
pname = "PyYAML";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "sha256-YHd0y7oocyv6gCtUuqdIQhX1MJkQVbtWLvvtWy8gpF4=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
2017-09-01 12:51:28 +01:00
|
|
|
};
|
2022-02-14 11:28:31 +00:00
|
|
|
in
|
|
|
|
with localPython.pkgs; buildPythonApplication rec {
|
2017-09-01 12:51:28 +01:00
|
|
|
pname = "awsebcli";
|
2022-02-14 11:28:31 +00:00
|
|
|
version = "3.20.3";
|
2017-09-01 12:51:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-14 11:28:31 +00:00
|
|
|
sha256 = "sha256-W3nUXPAXoicDQNXigktR1+b/9W6qvi90fujrXAekxTU=";
|
2017-09-01 12:51:28 +01:00
|
|
|
};
|
|
|
|
|
2022-06-11 23:01:13 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2022-07-15 22:06:11 +01:00
|
|
|
substituteInPlace setup.py \
|
2022-07-18 06:07:37 +01:00
|
|
|
--replace "six>=1.11.0,<1.15.0" "six==1.16.0" \
|
|
|
|
--replace "requests>=2.20.1,<=2.26" "requests==2.28.1" \
|
2022-12-09 22:39:14 +00:00
|
|
|
--replace "botocore>1.23.41,<1.24.0" "botocore>1.23.41,<2" \
|
2022-09-18 21:09:14 +01:00
|
|
|
--replace "pathspec==0.9.0" "pathspec>=0.10.0,<0.11.0" \
|
2022-10-28 21:41:17 +01:00
|
|
|
--replace "colorama>=0.2.5,<0.4.4" "colorama>=0.2.5,<=0.4.6" \
|
2023-01-01 09:14:09 +00:00
|
|
|
--replace "termcolor == 1.1.0" "termcolor>=2.0.0,<2.2.0"
|
2022-06-11 23:01:13 +01:00
|
|
|
'';
|
|
|
|
|
2018-08-30 18:22:26 +01:00
|
|
|
buildInputs = [
|
|
|
|
glibcLocales
|
|
|
|
];
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2017-09-01 12:51:28 +01:00
|
|
|
checkInputs = [
|
2022-02-14 11:28:31 +00:00
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pathspec
|
|
|
|
colorama
|
|
|
|
requests
|
|
|
|
docutils
|
2017-09-01 12:51:28 +01:00
|
|
|
];
|
|
|
|
|
2022-02-14 11:28:31 +00:00
|
|
|
doCheck = true;
|
2017-09-01 12:51:28 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-02-14 11:28:31 +00:00
|
|
|
blessed
|
|
|
|
botocore
|
|
|
|
cement
|
|
|
|
colorama
|
|
|
|
pathspec
|
|
|
|
pyyaml
|
|
|
|
future
|
|
|
|
requests
|
|
|
|
semantic-version
|
|
|
|
setuptools
|
|
|
|
tabulate
|
|
|
|
termcolor
|
|
|
|
websocket-client
|
|
|
|
docker_compose
|
2017-09-01 12:51:28 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://aws.amazon.com/elasticbeanstalk/";
|
2018-02-27 23:34:10 +00:00
|
|
|
description = "A command line interface for Elastic Beanstalk";
|
2017-09-01 12:51:28 +01:00
|
|
|
maintainers = with maintainers; [ eqyiel ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|