Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 python3Packages,
3 lib,
4 fetchFromGitHub,
5 awscli,
6 writableTmpDirAsHomeHook,
7}:
8
9python3Packages.buildPythonApplication rec {
10 pname = "aws-shell";
11 version = "0.2.2";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "awslabs";
16 repo = "aws-shell";
17 rev = "refs/tags/${version}";
18 hash = "sha256-m96XaaFDFQaD2YPjw8D1sGJ5lex4Is4LQ5RhGzVPvH4=";
19 };
20
21 build-system = with python3Packages; [
22 setuptools
23 ];
24
25 dependencies = with python3Packages; [
26 botocore
27 pygments
28 mock
29 configobj
30 awscli
31 (prompt-toolkit.overrideAttrs (old: {
32 src = fetchFromGitHub {
33 owner = "prompt-toolkit";
34 repo = "python-prompt-toolkit";
35 rev = "refs/tags/1.0.18"; # Need >=1.0.0,<1.1.0
36 hash = "sha256-mt/fIubkpeVc7vhAaTk0pXZXI8JzB7n2MzXqgqK0wE4=";
37 };
38 }))
39 ];
40
41 nativeCheckInputs = with python3Packages; [
42 pytestCheckHook
43 writableTmpDirAsHomeHook
44 ];
45
46 meta = {
47 homepage = "https://github.com/awslabs/aws-shell";
48 description = "Integrated shell for working with the AWS CLI";
49 platforms = lib.platforms.unix;
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ bot-wxt1221 ];
52 mainProgram = "aws-shell";
53 };
54}