nixpkgs/pkgs/tools/admin/aws-google-auth/default.nix

63 lines
1.2 KiB
Nix
Raw Normal View History

2018-11-21 00:35:16 +01:00
{ 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";
2020-03-01 10:16:22 +01:00
version = "0.0.34";
2018-11-21 00:35:16 +01: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;
2020-03-01 10:16:22 +01:00
sha256 = "12c5ssdy870szrizhs4d7dzcpq3hvszjvl8ba60qf1ak5jsr1ay4";
2018-11-21 00:35:16 +01:00
};
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";
2020-03-01 10:16:22 +01:00
homepage = "https://github.com/cevoaustralia/aws-google-auth";
2018-11-21 00:35:16 +01:00
maintainers = [ maintainers.marsam ];
license = licenses.mit;
};
}