2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, beautifulsoup4
|
|
|
|
, boto3
|
|
|
|
, configparser
|
2020-11-03 02:18:15 +00:00
|
|
|
, filelock
|
2020-04-24 23:36:52 +00:00
|
|
|
, keyring
|
|
|
|
, keyrings-alt
|
|
|
|
, lxml
|
|
|
|
, pillow
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, tabulate
|
|
|
|
, tzlocal
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, withU2F ? false, python-u2flib-host
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "aws-google-auth";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "0.0.37";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "1bh733n4m5rsslpbjvhdigx6768nrvacybkakrm9704d2md9vkqd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
beautifulsoup4
|
|
|
|
boto3
|
|
|
|
configparser
|
2020-11-03 02:18:15 +00:00
|
|
|
filelock
|
2020-04-24 23:36:52 +00:00
|
|
|
keyring
|
|
|
|
keyrings-alt
|
|
|
|
lxml
|
|
|
|
pillow
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
tabulate
|
|
|
|
tzlocal
|
|
|
|
] ++ lib.optional withU2F python-u2flib-host;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
mock
|
2020-11-03 02:18:15 +00:00
|
|
|
nose
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|