Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv
2, awscli
3}:
4
5with awscli.python.pkgs;
6
7buildPythonPackage rec {
8 pname = "aws-shell";
9 version = "0.2.1";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "2044b0ef78c7542c392f2cee4b74a4439545c63dda0a3e28b712fff53e8e5823";
14 };
15
16 # Why does it propagate packages that are used for testing?
17 propagatedBuildInputs = [
18 awscli
19 prompt_toolkit
20 boto3
21 configobj
22 pygments
23 pyyaml
24 ];
25
26 postPatch = ''
27 substituteInPlace setup.py \
28 --replace "prompt-toolkit>=1.0.0,<1.1.0" "prompt-toolkit"
29 '';
30
31 #Checks are failing due to missing TTY, which won't exist.
32 doCheck = false;
33 preCheck = ''
34 mkdir -p check-phase
35 export HOME=$(pwd)/check-phase
36 '';
37
38 meta = with stdenv.lib; {
39 homepage = https://github.com/awslabs/aws-shell;
40 description = "An integrated shell for working with the AWS CLI";
41 license = licenses.asl20;
42 maintainers = [ ];
43 };
44}