From 2b6ca477e6d057c44dbea5a1b67ae7c2e638b1ea Mon Sep 17 00:00:00 2001 From: Casey Ransom Date: Thu, 4 Feb 2016 13:48:52 -0500 Subject: [PATCH] aws_shell: init at 0.1.0 Currently depends on a specific prompt_toolkit package (which is not the latest), so that is also pinned here. --- pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 42 ++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed5e5ab8374c..ce13cc1a54e4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -582,6 +582,8 @@ let awscli = pythonPackages.awscli; + aws_shell = pythonPackages.aws_shell; + azure-cli = callPackage ../tools/virtualization/azure-cli { }; ec2_api_tools = callPackage ../tools/virtualization/ec2-api-tools { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b6757094e896..01d5ba7a3946 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1159,6 +1159,36 @@ in modules // { }; }; + aws_shell = buildPythonPackage rec { + name = "aws-shell-${version}"; + version = "0.1.0"; + src = pkgs.fetchurl { + sha256 = "05isyrqbk16dg1bc3mnc4ynxr3nchslvia5wr1sdmxvc3v2y729d"; + url = "https://pypi.python.org/packages/source/a/aws-shell/aws-shell-0.1.0.tar.gz"; + }; + propagatedBuildInputs = with self; [ + configobj prompt_toolkit_52 awscli boto3 pygments sqlite3 mock pytest + pytestcov unittest2 tox + ]; + + #Checks are failing due to missing TTY, which won't exist. + doCheck = false; + preCheck = '' + mkdir -p check-phase + export HOME=$(pwd)/check-phase + ''; + + disabled = isPy35; + + + meta = { + homepage = https://github.com/awslabs/aws-shell; + description = "An integrated shell for working with the AWS CLI."; + license = licenses.asl20; + maintainers = [ ]; + }; + }; + azure = buildPythonPackage rec { version = "0.11.0"; name = "azure-${version}"; @@ -15184,6 +15214,18 @@ in modules // { maintainers = with maintainers; [ nckx ]; }; }; + prompt_toolkit_52 = self.prompt_toolkit.override(self: rec { + name = "prompt_toolkit-${version}"; + version = "0.52"; + src = pkgs.fetchurl { + sha256 = "00h9ldqmb33nhg2kpks7paldf3n3023ipp124alwp96yz16s7f1m"; + url = "https://pypi.python.org/packages/source/p/prompt_toolkit/${name}.tar.gz"; + }; + + #Only <3.4 expressly supported. + disabled = isPy35; + + }); protobuf = self.protobuf2_6; protobuf2_6 = self.protobufBuild pkgs.protobuf2_6;