2022-06-16 17:23:12 +00:00
|
|
|
{ lib, python3, glibcLocales, docker-compose_1 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2022-06-16 17:23:12 +00:00
|
|
|
docker_compose = changeVersion (with localPython.pkgs; docker-compose_1.override {
|
2022-03-05 16:20:37 +00:00
|
|
|
inherit colorama pyyaml six dockerpty docker jsonschema requests websocket-client paramiko;
|
|
|
|
}).overridePythonAttrs "1.25.5" "1ijhg93zs3lswkljnm0rhww7gdy0g94psvsya2741prz2zcbcbks";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
changeVersion = overrideFunc: version: sha256: overrideFunc (oldAttrs: rec {
|
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
localPython = python3.override
|
|
|
|
{
|
|
|
|
self = localPython;
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
cement = changeVersion super.cement.overridePythonAttrs "2.8.2" "1li2whjzfhbpg6fjb6r1r92fb3967p1xv6hqs3j787865h2ysrc7";
|
|
|
|
botocore = changeVersion super.botocore.overridePythonAttrs "1.23.54" "sha256-S7m6FszO5fWiYCBJvD4ttoZTRrJVBmfzATvfM7CgHOs=";
|
2022-04-27 09:35:20 +00:00
|
|
|
jmespath = changeVersion super.jmespath.overridePythonAttrs "0.10.0" "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9";
|
2022-03-05 16:20:37 +00:00
|
|
|
colorama = changeVersion super.colorama.overridePythonAttrs "0.4.3" "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9";
|
|
|
|
future = changeVersion super.future.overridePythonAttrs "0.16.0" "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773";
|
2022-04-15 01:41:22 +00:00
|
|
|
requests = super.requests.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "2.26.0";
|
|
|
|
checkInputs = oldAttrs.checkInputs ++ [ super.trustme ];
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-uKpY+M95P/2HgtPYyxnmbvNverpDU+7IWedGeLAbB6c=";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2022-03-05 16:20:37 +00:00
|
|
|
six = changeVersion super.six.overridePythonAttrs "1.14.0" "02lw67hprv57hyg3cfy02y3ixjk3nzwc0dx3c4ynlvkfwkfdnsr3";
|
|
|
|
wcwidth = changeVersion super.wcwidth.overridePythonAttrs "0.1.9" "1wf5ycjx8s066rdvr0fgz4xds9a8zhs91c4jzxvvymm1c8l8cwzf";
|
2022-03-30 09:31:56 +00:00
|
|
|
semantic-version = changeVersion super.semantic-version.overridePythonAttrs "2.8.5" "d2cb2de0558762934679b9a104e82eca7af448c9f4974d1f3eeccff651df8a54";
|
2022-03-05 16:20:37 +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=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-03-05 16:20:37 +00:00
|
|
|
in
|
|
|
|
with localPython.pkgs; buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "awsebcli";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "3.20.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-W3nUXPAXoicDQNXigktR1+b/9W6qvi90fujrXAekxTU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glibcLocales
|
|
|
|
];
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pathspec
|
|
|
|
colorama
|
|
|
|
requests
|
|
|
|
docutils
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
blessed
|
|
|
|
botocore
|
|
|
|
cement
|
|
|
|
colorama
|
|
|
|
pathspec
|
|
|
|
pyyaml
|
|
|
|
future
|
|
|
|
requests
|
|
|
|
semantic-version
|
|
|
|
setuptools
|
|
|
|
tabulate
|
|
|
|
termcolor
|
|
|
|
websocket-client
|
|
|
|
docker_compose
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://aws.amazon.com/elasticbeanstalk/";
|
|
|
|
description = "A command line interface for Elastic Beanstalk";
|
|
|
|
maintainers = with maintainers; [ eqyiel ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|