chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / aw / aws-gate / package.nix
blob1561d1c17a92e9bdb8a515f82f88a6e8f4e93f70
1 { lib
2 , fetchFromGitHub
3 , installShellFiles
4 , python3Packages
5 , ssm-session-manager-plugin
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "aws-gate";
10   version = "0.11.3";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "xen0l";
15     repo = pname;
16     rev = version;
17     hash = "sha256-9w2jP4s1HXf1gYiXX05Dt2iXt0bR0U48yc8h9T5M+EQ=";
18   };
20   patches = [
21     ./disable-bootstrap.patch
22   ];
24   postPatch = ''
25     rm aws_gate/bootstrap.py tests/unit/test_bootstrap.py
26   '';
28   nativeBuildInputs = [
29     installShellFiles
30     python3Packages.setuptools
31     python3Packages.wheel
32   ];
34   pythonRelaxDeps = true;
36   propagatedBuildInputs = [
37     python3Packages.boto3
38     python3Packages.cryptography
39     python3Packages.marshmallow
40     python3Packages.packaging
41     python3Packages.pyyaml
42     python3Packages.requests
43     python3Packages.unix-ar
44     python3Packages.wrapt
45     ssm-session-manager-plugin
46   ];
48   postInstall = ''
49     installShellCompletion --bash completions/bash/aws-gate
50     installShellCompletion --zsh completions/zsh/_aws-gate
51   '';
53   checkPhase = ''
54     $out/bin/${pname} --version
55   '';
57   meta = with lib; {
58     description = "Better AWS SSM Session manager CLI client";
59     homepage = "https://github.com/xen0l/aws-gate";
60     license = licenses.bsd3;
61     maintainers = with maintainers; [ tirimia ];
62     platforms = with platforms; linux ++ darwin;
63     mainProgram = "aws-gate";
64   };