summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@users.noreply.github.com>2018-11-30 21:58:24 -0500
committerGitHub <noreply@github.com>2018-11-30 21:58:24 -0500
commit50bb0afa7cec45221470f384690cd94000a4f408 (patch)
tree1b2a0b1ca5d4c9a205891635c1a739ba3d411768 /pkgs
parent9d73a7e6f4a40e4efb5b959c49ba061c8104610a (diff)
parentf15aecd1bb5333afa730af354b3e1458f284daa5 (diff)
downloadnixpkgs-50bb0afa7cec45221470f384690cd94000a4f408.tar
nixpkgs-50bb0afa7cec45221470f384690cd94000a4f408.tar.gz
nixpkgs-50bb0afa7cec45221470f384690cd94000a4f408.tar.bz2
nixpkgs-50bb0afa7cec45221470f384690cd94000a4f408.tar.lz
nixpkgs-50bb0afa7cec45221470f384690cd94000a4f408.tar.xz
nixpkgs-50bb0afa7cec45221470f384690cd94000a4f408.tar.zst
nixpkgs-50bb0afa7cec45221470f384690cd94000a4f408.zip
Merge pull request #50863 from marsam/feature/add-aws-google-auth
aws-google-auth: init at 0.0.29
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/admin/aws-google-auth/default.nix62
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/tools/admin/aws-google-auth/default.nix b/pkgs/tools/admin/aws-google-auth/default.nix
new file mode 100644
index 00000000000..5d4ba0bfbc8
--- /dev/null
+++ b/pkgs/tools/admin/aws-google-auth/default.nix
@@ -0,0 +1,62 @@
+{ lib
+, buildPythonApplication
+, fetchFromGitHub
+, beautifulsoup4
+, boto3
+, configparser
+, keyring
+, keyrings-alt
+, lxml
+, pillow
+, requests
+, six
+, tabulate
+, tzlocal
+, nose
+, mock
+, withU2F ? false, python-u2flib-host
+}:
+
+buildPythonApplication rec {
+  pname = "aws-google-auth";
+  version = "0.0.29";
+
+  # Pypi doesn't ship the tests, so we fetch directly from GitHub
+  # https://github.com/cevoaustralia/aws-google-auth/issues/120
+  src = fetchFromGitHub {
+    owner = "cevoaustralia";
+    repo = "aws-google-auth";
+    rev = version;
+    sha256 = "06dalrwjy1sbc5wvj5ip4h999izlb0j5g6b6f3l5znnsm0vfvfia";
+  };
+
+  propagatedBuildInputs = [ 
+    beautifulsoup4
+    boto3
+    configparser
+    keyring
+    keyrings-alt
+    lxml
+    pillow
+    requests
+    six
+    tabulate
+    tzlocal
+  ] ++ lib.optional withU2F python-u2flib-host;
+  
+  checkInputs = [ 
+    mock
+    nose 
+  ];
+
+  preCheck = ''
+    export HOME=$TMPDIR
+  '';
+
+  meta = with lib; {
+    description = "Acquire AWS STS (temporary) credentials via Google Apps SAML Single Sign On";
+    homepage = https://github.com/cevoaustralia/aws-google-auth;
+    maintainers = [ maintainers.marsam ];
+    license = licenses.mit;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index af34fef8dd9..e21ab50f0dd 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -611,6 +611,8 @@ with pkgs;
 
   aws-env = callPackage ../tools/admin/aws-env { };
 
+  aws-google-auth = pythonPackages.callPackage ../tools/admin/aws-google-auth { };
+
   aws-okta = callPackage ../tools/security/aws-okta { };
 
   aws-rotate-key = callPackage ../tools/admin/aws-rotate-key { };