2017-11-10 16:59:25 +00:00
|
|
|
{ stdenv
|
|
|
|
, awscli
|
|
|
|
}:
|
|
|
|
|
2019-10-17 09:47:06 +01:00
|
|
|
with awscli.python.pkgs;
|
|
|
|
|
2017-11-10 16:59:25 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-shell";
|
2019-10-27 15:02:32 +00:00
|
|
|
version = "0.2.1";
|
2017-11-10 16:59:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-27 15:02:32 +00:00
|
|
|
sha256 = "2044b0ef78c7542c392f2cee4b74a4439545c63dda0a3e28b712fff53e8e5823";
|
2017-11-10 16:59:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Why does it propagate packages that are used for testing?
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
awscli
|
|
|
|
prompt_toolkit
|
|
|
|
boto3
|
|
|
|
configobj
|
|
|
|
pygments
|
2019-10-17 09:47:06 +01:00
|
|
|
pyyaml
|
2017-11-10 16:59:25 +00:00
|
|
|
];
|
|
|
|
|
2019-12-22 20:50:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "prompt-toolkit>=1.0.0,<1.1.0" "prompt-toolkit"
|
|
|
|
'';
|
|
|
|
|
2017-11-10 16:59:25 +00:00
|
|
|
#Checks are failing due to missing TTY, which won't exist.
|
|
|
|
doCheck = false;
|
|
|
|
preCheck = ''
|
|
|
|
mkdir -p check-phase
|
|
|
|
export HOME=$(pwd)/check-phase
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/awslabs/aws-shell;
|
|
|
|
description = "An integrated shell for working with the AWS CLI";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|