python awscli: move to python-packages.nix
This commit is contained in:
parent
515a13b1f5
commit
b2d9b48c97
|
@ -1,40 +0,0 @@
|
||||||
{ stdenv, fetchFromGitHub, pythonPackages, groff }:
|
|
||||||
|
|
||||||
pythonPackages.buildPythonPackage rec {
|
|
||||||
name = "awscli-${version}";
|
|
||||||
version = "1.9.6";
|
|
||||||
namePrefix = "";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "aws";
|
|
||||||
repo = "aws-cli";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "08qclasxf8zdxwmngvynq9n5vv4nwdy68ma7wn7ji40bxmls37g2";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
pythonPackages.botocore
|
|
||||||
pythonPackages.bcdoc
|
|
||||||
pythonPackages.six
|
|
||||||
pythonPackages.colorama
|
|
||||||
pythonPackages.docutils
|
|
||||||
pythonPackages.rsa
|
|
||||||
pythonPackages.pyasn1
|
|
||||||
groff
|
|
||||||
];
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $out/etc/bash_completion.d
|
|
||||||
echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli
|
|
||||||
mkdir -p $out/share/zsh/site-functions
|
|
||||||
mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions
|
|
||||||
rm $out/bin/aws.cmd
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://aws.amazon.com/cli/;
|
|
||||||
description = "Unified tool to manage your AWS services";
|
|
||||||
license = stdenv.lib.licenses.asl20;
|
|
||||||
maintainers = with stdenv.lib.maintainers; [ muflax ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -577,7 +577,7 @@ let
|
||||||
|
|
||||||
avfs = callPackage ../tools/filesystems/avfs { };
|
avfs = callPackage ../tools/filesystems/avfs { };
|
||||||
|
|
||||||
awscli = callPackage ../tools/admin/awscli { };
|
awscli = pythonPackages.aswcli;
|
||||||
|
|
||||||
ec2_api_tools = callPackage ../tools/virtualization/ec2-api-tools { };
|
ec2_api_tools = callPackage ../tools/virtualization/ec2-api-tools { };
|
||||||
|
|
||||||
|
|
|
@ -952,6 +952,44 @@ in modules // {
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
awscli = buildPythonPackage rec {
|
||||||
|
name = "awscli-${version}";
|
||||||
|
version = "1.9.6";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "aws";
|
||||||
|
repo = "aws-cli";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "08qclasxf8zdxwmngvynq9n5vv4nwdy68ma7wn7ji40bxmls37g2";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with self; [
|
||||||
|
botocore
|
||||||
|
bcdoc
|
||||||
|
six
|
||||||
|
colorama
|
||||||
|
docutils
|
||||||
|
rsa
|
||||||
|
pyasn1
|
||||||
|
pkgs.groff
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/etc/bash_completion.d
|
||||||
|
echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli
|
||||||
|
mkdir -p $out/share/zsh/site-functions
|
||||||
|
mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions
|
||||||
|
rm $out/bin/aws.cmd
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = https://aws.amazon.com/cli/;
|
||||||
|
description = "Unified tool to manage your AWS services";
|
||||||
|
license = stdenv.lib.licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ muflax ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
azure = buildPythonPackage rec {
|
azure = buildPythonPackage rec {
|
||||||
version = "0.11.0";
|
version = "0.11.0";
|
||||||
name = "azure-${version}";
|
name = "azure-${version}";
|
||||||
|
|
Loading…
Reference in New Issue