Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 66 lines 1.6 kB view raw
1{ lib 2, python 3, groff 4, less 5}: 6 7let 8 py = python.override { 9 packageOverrides = self: super: { 10 rsa = super.rsa.overridePythonAttrs (oldAttrs: rec { 11 version = "3.4.2"; 12 src = oldAttrs.src.override { 13 inherit version; 14 sha256 = "25df4e10c263fb88b5ace923dd84bf9aa7f5019687b5e55382ffcdb8bede9db5"; 15 }; 16 }); 17 colorama = super.colorama.overridePythonAttrs (oldAttrs: rec { 18 version = "0.3.9"; 19 src = oldAttrs.src.override { 20 inherit version; 21 sha256 = "48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1"; 22 }; 23 }); 24 }; 25 }; 26 27in py.pkgs.buildPythonApplication rec { 28 pname = "awscli"; 29 version = "1.16.106"; # N.B: if you change this, change botocore to a matching version too 30 31 src = py.pkgs.fetchPypi { 32 inherit pname version; 33 sha256 = "169810cb895ac8608747e81480aebd2712f654ad2e49e1f1315f34d6052d5e2d"; 34 }; 35 36 # No tests included 37 doCheck = false; 38 39 propagatedBuildInputs = with py.pkgs; [ 40 botocore 41 bcdoc 42 s3transfer 43 six 44 colorama 45 docutils 46 rsa 47 pyyaml 48 groff 49 less 50 ]; 51 52 postInstall = '' 53 mkdir -p $out/etc/bash_completion.d 54 echo "complete -C $out/bin/aws_completer aws" > $out/etc/bash_completion.d/awscli 55 mkdir -p $out/share/zsh/site-functions 56 mv $out/bin/aws_zsh_completer.sh $out/share/zsh/site-functions 57 rm $out/bin/aws.cmd 58 ''; 59 60 meta = with lib; { 61 homepage = https://aws.amazon.com/cli/; 62 description = "Unified tool to manage your AWS services"; 63 license = licenses.asl20; 64 maintainers = with maintainers; [ muflax ]; 65 }; 66}