Skip to content

Commit

Permalink
awscli and aws_shell: use the same python version with deps
Browse files Browse the repository at this point in the history
We need this python version with its custom dependencies for aws_shell.
  • Loading branch information
FRidh committed Oct 17, 2019
1 parent e63580c commit f7761c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 3 additions & 6 deletions pkgs/tools/admin/aws_shell/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, awscli
, prompt_toolkit
, boto3
, configobj
, pygments
}:

with awscli.python.pkgs;

buildPythonPackage rec {
pname = "aws-shell";
version = "0.2.0";
Expand All @@ -24,6 +20,7 @@ buildPythonPackage rec {
boto3
configobj
pygments
pyyaml
];

#Checks are failing due to missing TTY, which won't exist.
Expand Down
4 changes: 3 additions & 1 deletion pkgs/tools/admin/awscli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ in py.pkgs.buildPythonApplication rec {
# No tests included
doCheck = false;

pythonPath = with py.pkgs; [
propagatedBuildInputs = with py.pkgs; [
botocore
bcdoc
s3transfer
Expand All @@ -63,6 +63,8 @@ in py.pkgs.buildPythonApplication rec {
rm $out/bin/aws.cmd
'';

passthru.python = py; # for aws_shell

meta = with lib; {
homepage = https://aws.amazon.com/cli/;
description = "Unified tool to manage your AWS services";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ in

aws-rotate-key = callPackage ../tools/admin/aws-rotate-key { };

aws_shell = pythonPackages.callPackage ../tools/admin/aws_shell { };
aws_shell = callPackage ../tools/admin/aws_shell { };

aws-sam-cli = callPackage ../development/tools/aws-sam-cli { };

Expand Down

0 comments on commit f7761c2

Please sign in to comment.