forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#50863 from marsam/feature/add-aws-google-auth
aws-google-auth: init at 0.0.29
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters