diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-12-03 12:18:43 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-12-03 12:18:43 +0100 |
commit | a510aa2672dae525c1eb152f00fd0e6f8eb10f39 (patch) | |
tree | ee9b7efb3ca8049b84de1070e3cd2704c109f0f9 /pkgs/tools/admin | |
parent | 077b7e5880628c12fe6a9ae0b10db848deb85b50 (diff) | |
parent | e869896d00d9c7b1485b15e891d21213b4ff97f0 (diff) | |
download | nixlib-a510aa2672dae525c1eb152f00fd0e6f8eb10f39.tar nixlib-a510aa2672dae525c1eb152f00fd0e6f8eb10f39.tar.gz nixlib-a510aa2672dae525c1eb152f00fd0e6f8eb10f39.tar.bz2 nixlib-a510aa2672dae525c1eb152f00fd0e6f8eb10f39.tar.lz nixlib-a510aa2672dae525c1eb152f00fd0e6f8eb10f39.tar.xz nixlib-a510aa2672dae525c1eb152f00fd0e6f8eb10f39.tar.zst nixlib-a510aa2672dae525c1eb152f00fd0e6f8eb10f39.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r-- | pkgs/tools/admin/aws-google-auth/default.nix | 62 |
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 000000000000..5d4ba0bfbc8c --- /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; + }; +} |