Merge pull request #35380 from eqyiel/awsebcli-cleanup
awsebcli: clean up derivation
This commit is contained in:
commit
d63835d547
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cement";
|
pname = "cement";
|
||||||
name = "${pname}-${version}";
|
|
||||||
version = "2.10.2";
|
version = "2.10.2";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage }:
|
{ stdenv, fetchPypi, buildPythonPackage }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "colorama";
|
pname = "colorama";
|
||||||
version = "0.3.9";
|
version = "0.3.9";
|
||||||
|
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchurl
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, six, requests, websocket_client
|
, six, requests, websocket_client
|
||||||
, ipaddress, backports_ssl_match_hostname, docker_pycreds
|
, ipaddress, backports_ssl_match_hostname, docker_pycreds
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "2.7.0";
|
version = "2.7.0";
|
||||||
pname = "docker";
|
pname = "docker";
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "mirror://pypi/d/docker/${name}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "144248308e8ea31c4863c6d74e1b55daf97cc190b61d0fe7b7313ab920d6a76c";
|
sha256 = "144248308e8ea31c4863c6d74e1b55daf97cc190b61d0fe7b7313ab920d6a76c";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
, pytest }:
|
, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "requests";
|
pname = "requests";
|
||||||
version = "2.18.4";
|
version = "2.18.4";
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "semantic_version";
|
pname = "semantic_version";
|
||||||
version = "2.6.0";
|
version = "2.6.0";
|
||||||
name = "${pname}${version}";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.8.2";
|
version = "0.8.2";
|
||||||
pname = "tabulate";
|
pname = "tabulate";
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -25,4 +24,4 @@ buildPythonPackage rec {
|
|||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ fridh ];
|
maintainers = with lib.maintainers; [ fridh ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,10 @@
|
|||||||
let
|
let
|
||||||
|
|
||||||
localPython = python.override {
|
localPython = python.override {
|
||||||
packageOverrides = self: super: rec {
|
packageOverrides = self: super: {
|
||||||
cement = super.cement.overridePythonAttrs (oldAttrs: rec {
|
cement = super.cement.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "2.8.2";
|
version = "2.8.2";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
src = super.fetchPypi {
|
|
||||||
inherit (oldAttrs) pname;
|
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "1li2whjzfhbpg6fjb6r1r92fb3967p1xv6hqs3j787865h2ysrc7";
|
sha256 = "1li2whjzfhbpg6fjb6r1r92fb3967p1xv6hqs3j787865h2ysrc7";
|
||||||
};
|
};
|
||||||
@ -15,30 +13,15 @@ let
|
|||||||
|
|
||||||
colorama = super.colorama.overridePythonAttrs (oldAttrs: rec {
|
colorama = super.colorama.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "0.3.7";
|
version = "0.3.7";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
src = super.fetchPypi {
|
|
||||||
inherit (oldAttrs) pname;
|
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
|
sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
docker = super.docker.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
pname = "docker-py";
|
|
||||||
version = "1.7.2";
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = super.fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "0k6hm3vmqh1d3wr9rryyif5n4rzvcffdlb1k4jvzp7g4996d3ccm";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
requests = super.requests.overridePythonAttrs (oldAttrs: rec {
|
requests = super.requests.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "2.9.1";
|
version = "2.9.1";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
src = super.fetchPypi {
|
|
||||||
inherit (oldAttrs) pname;
|
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5";
|
sha256 = "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5";
|
||||||
};
|
};
|
||||||
@ -46,18 +29,15 @@ let
|
|||||||
|
|
||||||
semantic-version = super.semantic-version.overridePythonAttrs (oldAttrs: rec {
|
semantic-version = super.semantic-version.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "2.5.0";
|
version = "2.5.0";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
src = super.fetchPypi {
|
inherit version;
|
||||||
inherit (oldAttrs) pname; inherit version;
|
|
||||||
sha256 = "0p5n3d6blgkncxdz00yxqav0cis87fisdkirjm0ljjh7rdfx7aiv";
|
sha256 = "0p5n3d6blgkncxdz00yxqav0cis87fisdkirjm0ljjh7rdfx7aiv";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
tabulate = super.tabulate.overridePythonAttrs (oldAttrs: rec {
|
tabulate = super.tabulate.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "0.7.5";
|
version = "0.7.5";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
src = super.fetchPypi {
|
|
||||||
inherit (oldAttrs) pname;
|
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch";
|
sha256 = "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch";
|
||||||
};
|
};
|
||||||
@ -65,7 +45,6 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in with localPython.pkgs; buildPythonApplication rec {
|
in with localPython.pkgs; buildPythonApplication rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "awsebcli";
|
pname = "awsebcli";
|
||||||
version = "3.12.3";
|
version = "3.12.3";
|
||||||
|
|
||||||
@ -81,7 +60,10 @@ in with localPython.pkgs; buildPythonApplication rec {
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
blessed botocore cement colorama docker dockerpty docopt pathspec pyyaml
|
# 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
|
||||||
requests semantic-version setuptools tabulate termcolor websocket_client
|
requests semantic-version setuptools tabulate termcolor websocket_client
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -92,7 +74,7 @@ in with localPython.pkgs; buildPythonApplication rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://aws.amazon.com/elasticbeanstalk/;
|
homepage = https://aws.amazon.com/elasticbeanstalk/;
|
||||||
description = "A command line interface for Elastic Beanstalk.";
|
description = "A command line interface for Elastic Beanstalk";
|
||||||
maintainers = with maintainers; [ eqyiel ];
|
maintainers = with maintainers; [ eqyiel ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user