awscli: refactor
This commit is contained in:
parent
6617c0cc30
commit
ae870798dc
@ -1,35 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, botocore
|
||||
, bcdoc
|
||||
, s3transfer
|
||||
, six
|
||||
, colorama
|
||||
, docutils
|
||||
, rsa
|
||||
, pyyaml
|
||||
{ lib
|
||||
, python
|
||||
, groff
|
||||
, less
|
||||
}:
|
||||
|
||||
let
|
||||
colorama_3_7 = colorama.overrideAttrs (old: rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "colorama";
|
||||
version = "0.3.7";
|
||||
src = old.src.override {
|
||||
inherit version;
|
||||
sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
|
||||
py = python.override {
|
||||
packageOverrides = self: super: {
|
||||
colorama = super.colorama.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "0.3.7";
|
||||
src = oldAttrs.src.override {
|
||||
inherit version;
|
||||
sha256 = "0avqkn6362v7k2kg3afb35g4sfdvixjgy890clip4q174p9whhz0";
|
||||
};
|
||||
});
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
in buildPythonPackage rec {
|
||||
in py.pkgs.buildPythonApplication rec {
|
||||
pname = "awscli";
|
||||
version = "1.14.47";
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchPypi {
|
||||
src = py.pkgs.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "269483910c820ae5b4f60021375f07e4f1c23f86505e1b9e29243880a660c1d8";
|
||||
};
|
||||
@ -37,12 +29,12 @@ in buildPythonPackage rec {
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
propagatedBuildInputs = with py.pkgs; [
|
||||
botocore
|
||||
bcdoc
|
||||
s3transfer
|
||||
six
|
||||
colorama_3_7
|
||||
colorama
|
||||
docutils
|
||||
rsa
|
||||
pyyaml
|
||||
@ -58,10 +50,10 @@ in buildPythonPackage rec {
|
||||
rm $out/bin/aws.cmd
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = https://aws.amazon.com/cli/;
|
||||
description = "Unified tool to manage your AWS services";
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ muflax ];
|
||||
};
|
||||
}
|
||||
|
@ -552,7 +552,7 @@ with pkgs;
|
||||
|
||||
avfs = callPackage ../tools/filesystems/avfs { };
|
||||
|
||||
awscli = pythonPackages.callPackage ../tools/admin/awscli { };
|
||||
awscli = callPackage ../tools/admin/awscli { };
|
||||
|
||||
awsebcli = callPackage ../tools/virtualization/awsebcli {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user