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;
|
2023-03-15 16:39:30 +00:00
|
|
|
}).overridePythonAttrs "1.25.5" "sha256-ei622Bc/30COUF5vfUl6wLd3OIcZVCvp5JoO/Ud6UMY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
changeVersion = overrideFunc: version: hash: overrideFunc (oldAttrs: rec {
|
2022-03-05 16:20:37 +00:00
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
2023-03-15 16:39:30 +00:00
|
|
|
inherit version hash;
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
localPython = python3.override
|
|
|
|
{
|
|
|
|
self = localPython;
|
|
|
|
packageOverrides = self: super: {
|
2023-03-15 16:39:30 +00:00
|
|
|
cement = changeVersion super.cement.overridePythonAttrs "2.8.2" "sha256-h2XtBSwGHXTk0Bia3cM9Jo3lRMohmyWdeXdB9yXkItI=";
|
|
|
|
wcwidth = changeVersion super.wcwidth.overridePythonAttrs "0.1.9" "sha256-7nOGKGKhVr93/5KwkDT8SCXdOvnPgbxbNgZo1CXzxfE=";
|
|
|
|
semantic-version = changeVersion super.semantic-version.overridePythonAttrs "2.8.5" "sha256-0sst4FWHYpNGebmhBOguynr0SMn0l00fPuzP9lHfilQ=";
|
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;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-YHd0y7oocyv6gCtUuqdIQhX1MJkQVbtWLvvtWy8gpF4=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
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;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-W3nUXPAXoicDQNXigktR1+b/9W6qvi90fujrXAekxTU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2022-08-12 12:06:08 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "six>=1.11.0,<1.15.0" "six==1.16.0" \
|
2023-02-02 18:25:31 +00:00
|
|
|
--replace "requests>=2.20.1,<=2.26" "requests<3" \
|
2023-01-20 10:41:00 +00:00
|
|
|
--replace "botocore>1.23.41,<1.24.0" "botocore>1.23.41,<2" \
|
2023-03-15 16:39:30 +00:00
|
|
|
--replace "pathspec==0.9.0" "pathspec>=0.10.0,<1" \
|
2022-11-02 22:02:43 +00:00
|
|
|
--replace "colorama>=0.2.5,<0.4.4" "colorama>=0.2.5,<=0.4.6" \
|
2023-02-02 18:25:31 +00:00
|
|
|
--replace "future>=0.16.0,<0.17.0" "future" \
|
2023-03-15 16:39:30 +00:00
|
|
|
--replace "termcolor == 1.1.0" "termcolor>=2.0.0,<3"
|
2022-06-26 10:26:21 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
glibcLocales
|
|
|
|
];
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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";
|
2023-03-08 16:32:21 +00:00
|
|
|
maintainers = with maintainers; [ eqyiel kirillrdy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|