summary refs log tree commit diff
path: root/pkgs/tools/admin/aws-google-auth
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2018-11-20 18:35:16 -0500
committerworldofpeace <worldofpeace@users.noreply.github.com>2018-11-30 21:57:07 -0500
commitf15aecd1bb5333afa730af354b3e1458f284daa5 (patch)
tree30205a7bc32d63fb6c26b0d2b0bcc64050890e09 /pkgs/tools/admin/aws-google-auth
parentf6e03ecee8d0e00cc595e62211b7856537d4d703 (diff)
downloadnixpkgs-f15aecd1bb5333afa730af354b3e1458f284daa5.tar
nixpkgs-f15aecd1bb5333afa730af354b3e1458f284daa5.tar.gz
nixpkgs-f15aecd1bb5333afa730af354b3e1458f284daa5.tar.bz2
nixpkgs-f15aecd1bb5333afa730af354b3e1458f284daa5.tar.lz
nixpkgs-f15aecd1bb5333afa730af354b3e1458f284daa5.tar.xz
nixpkgs-f15aecd1bb5333afa730af354b3e1458f284daa5.tar.zst
nixpkgs-f15aecd1bb5333afa730af354b3e1458f284daa5.zip
aws-google-auth: init at 0.0.29
Diffstat (limited to 'pkgs/tools/admin/aws-google-auth')
-rw-r--r--pkgs/tools/admin/aws-google-auth/default.nix62
1 files changed, 62 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;
+  };
+}