@@ -0,0 +1,99 @@
1+ { stdenv, python }:
2+let
3+
4+ localPython = python.override {
5+ packageOverrides = self: super: rec {
6+ colorama = super.colorama.overridePythonAttrs (oldAttrs: rec {
7+ version = "0.3.7";
8+
9+ src = super.fetchPypi {
10+ inherit (oldAttrs) pname;
11+ inherit version;
12+ sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
13+ };
14+ });
15+
16+ docker = super.docker.overridePythonAttrs (oldAttrs: rec {
17+ pname = "docker-py";
18+ version = "1.7.2";
19+ name = "${pname}-${version}";
20+
21+ src = super.fetchPypi {
22+ inherit pname version;
23+ sha256 = "0k6hm3vmqh1d3wr9rryyif5n4rzvcffdlb1k4jvzp7g4996d3ccm";
24+ };
25+ });
26+
27+ pathspec = super.pathspec.overridePythonAttrs (oldAttrs: rec {
28+ version = "0.5.0";
29+
30+ src = super.fetchPypi {
31+ inherit (oldAttrs) pname;
32+ inherit version;
33+ sha256 = "07yx1gxj9v1iyyiy5fhq2wsmh4qfbrx158wi7jb0nx6lah80ffma";
34+ };
35+ });
36+
37+ requests = super.requests.overridePythonAttrs (oldAttrs: rec {
38+ version = "2.9.1";
39+
40+ src = super.fetchPypi {
41+ inherit (oldAttrs) pname;
42+ inherit version;
43+ sha256 = "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5";
44+ };
45+ });
46+
47+ semantic-version = super.semantic-version.overridePythonAttrs (oldAttrs: rec {
48+ version = "2.5.0";
49+
50+ src = super.fetchPypi {
51+ inherit (oldAttrs) pname; inherit version;
52+ sha256 = "0p5n3d6blgkncxdz00yxqav0cis87fisdkirjm0ljjh7rdfx7aiv";
53+ };
54+ });
55+
56+ tabulate = super.tabulate.overridePythonAttrs (oldAttrs: rec {
57+ version = "0.7.5";
58+
59+ src = super.fetchPypi {
60+ inherit (oldAttrs) pname;
61+ inherit version;
62+ sha256 = "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch";
63+ };
64+ });
65+ };
66+ };
67+in with localPython.pkgs; buildPythonApplication rec {
68+ name = "${pname}-${version}";
69+ pname = "awsebcli";
70+ version = "3.10.5";
71+
72+ src = fetchPypi {
73+ inherit pname version;
74+ sha256 = "1g53z2flhp3navdf8lw6rgh99akf3k0ng1zkkqswvh66zswkxnwn";
75+ };
76+
77+ checkInputs = [
78+ pytest mock nose pathspec colorama requests docutils
79+ ];
80+
81+ doCheck = false;
82+
83+ propagatedBuildInputs = [
84+ blessed botocore cement colorama docker dockerpty docopt pathspec pyyaml
85+ requests semantic-version setuptools tabulate termcolor websocket_client
86+ ];
87+
88+ postInstall = ''
89+ mkdir -p $out/etc/bash_completion.d
90+ mv $out/bin/eb_completion.bash $out/etc/bash_completion.d
91+ '';
92+
93+ meta = with stdenv.lib; {
94+ homepage = http://aws.amazon.com/elasticbeanstalk/;
95+ description = "A command line interface for Elastic Beanstalk.";
96+ maintainers = with maintainers; [ eqyiel ];
97+ license = licenses.asl20;
98+ };
99+}