2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python3, glibcLocales }:
|
2017-09-01 12:51:28 +01:00
|
|
|
let
|
|
|
|
|
2018-08-30 18:22:26 +01:00
|
|
|
localPython = python3.override {
|
2018-02-27 23:34:10 +00:00
|
|
|
packageOverrides = self: super: {
|
2017-11-02 22:59:22 +00:00
|
|
|
cement = super.cement.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "2.8.2";
|
2018-02-27 23:34:10 +00:00
|
|
|
src = oldAttrs.src.override {
|
2017-11-02 22:59:22 +00:00
|
|
|
inherit version;
|
|
|
|
sha256 = "1li2whjzfhbpg6fjb6r1r92fb3967p1xv6hqs3j787865h2ysrc7";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2017-09-01 12:51:28 +01:00
|
|
|
colorama = super.colorama.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "0.3.7";
|
2018-02-27 23:34:10 +00:00
|
|
|
src = oldAttrs.src.override {
|
2017-09-01 12:51:28 +01:00
|
|
|
inherit version;
|
|
|
|
sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2018-04-27 01:49:37 +01:00
|
|
|
pathspec = super.pathspec.overridePythonAttrs (oldAttrs: rec {
|
2018-11-04 23:35:13 +00:00
|
|
|
name = "${oldAttrs.pname}-${version}";
|
2018-04-27 01:49:37 +01:00
|
|
|
version = "0.5.5";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "72c495d1bbe76674219e307f6d1c6062f2e1b0b483a5e4886435127d0df3d0d3";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2017-09-01 12:51:28 +01:00
|
|
|
requests = super.requests.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "2.9.1";
|
2018-02-27 23:34:10 +00:00
|
|
|
src = oldAttrs.src.override {
|
2017-09-01 12:51:28 +01:00
|
|
|
inherit version;
|
|
|
|
sha256 = "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
semantic-version = super.semantic-version.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "2.5.0";
|
2018-02-27 23:34:10 +00:00
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
2017-09-01 12:51:28 +01:00
|
|
|
sha256 = "0p5n3d6blgkncxdz00yxqav0cis87fisdkirjm0ljjh7rdfx7aiv";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
tabulate = super.tabulate.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "0.7.5";
|
2018-02-27 23:34:10 +00:00
|
|
|
src = oldAttrs.src.override {
|
2017-09-01 12:51:28 +01:00
|
|
|
inherit version;
|
|
|
|
sha256 = "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in with localPython.pkgs; buildPythonApplication rec {
|
|
|
|
pname = "awsebcli";
|
2018-04-27 01:58:03 +01:00
|
|
|
version = "3.12.4";
|
2017-09-01 12:51:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-27 01:58:03 +01:00
|
|
|
sha256 = "128dgxyz2bgl3r4jdkbmjs280004bm0dwzln7p6ly3yjs2x37jl6";
|
2017-09-01 12:51:28 +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 = [
|
|
|
|
pytest mock nose pathspec colorama requests docutils
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-02-27 23:34:10 +00:00
|
|
|
# FIXME: Add optional docker dependency, which requires requests >= 2.14.2.
|
|
|
|
# Otherwise, awsebcli will try to install it using pip when using some
|
|
|
|
# commands (like "eb local run").
|
|
|
|
blessed botocore cement colorama dockerpty docopt pathspec pyyaml
|
2017-09-01 12:51:28 +01:00
|
|
|
requests semantic-version setuptools tabulate termcolor websocket_client
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-12 21:22:18 +00:00
|
|
|
mkdir -p $out/share/bash-completion/completions
|
|
|
|
mv $out/bin/eb_completion.bash $out/share/bash-completion/completions/
|
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;
|
|
|
|
};
|
|
|
|
}
|