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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
1.6 KiB
Nix
Raw Normal View History

2018-11-20 23:35:16 +00:00
{ lib
, buildPythonApplication
, fetchFromGitHub
, beautifulsoup4
, boto3
, configparser
2020-10-28 18:18:45 +00:00
, filelock
2018-11-20 23:35:16 +00:00
, keyring
, keyrings-alt
, lxml
, pillow
, requests
, six
, tabulate
, tzlocal
, nose
, mock
, setuptools
, aws-google-auth
, testers
2018-11-20 23:35:16 +00:00
, withU2F ? false, python-u2flib-host
}:
buildPythonApplication rec {
pname = "aws-google-auth";
2022-05-03 00:49:37 +00:00
version = "0.0.38";
2018-11-20 23:35:16 +00:00
pyproject = true;
2018-11-20 23:35:16 +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";
2022-05-03 00:49:37 +00:00
rev = "refs/tags/${version}";
sha256 = "sha256-/Xe4RDA9sBEsBBV1VP91VX0VfO8alK8L70m9WrB7qu4=";
2018-11-20 23:35:16 +00:00
};
nativeBuildInputs = [
setuptools
];
2020-10-28 18:18:45 +00:00
propagatedBuildInputs = [
2018-11-20 23:35:16 +00:00
beautifulsoup4
boto3
configparser
2020-10-28 18:18:45 +00:00
filelock
2018-11-20 23:35:16 +00:00
keyring
keyrings-alt
lxml
pillow
requests
six
tabulate
tzlocal
] ++ lib.optional withU2F python-u2flib-host;
2020-10-28 18:18:45 +00:00
nativeCheckInputs = [
2018-11-20 23:35:16 +00:00
mock
2020-10-28 18:18:45 +00:00
nose
2018-11-20 23:35:16 +00:00
];
preCheck = ''
export HOME=$TMPDIR
'';
# with pyproject the tests aren't attempted
# without pyproject the tests try to access internet
doCheck = false;
pythonImportsCheck = [ "aws_google_auth" ];
passthru.tests.version = testers.testVersion {
package = aws-google-auth;
};
2018-11-20 23:35:16 +00:00
meta = with lib; {
description = "Acquire AWS STS (temporary) credentials via Google Apps SAML Single Sign On";
2020-03-01 09:16:22 +00:00
homepage = "https://github.com/cevoaustralia/aws-google-auth";
2018-11-20 23:35:16 +00:00
maintainers = [ maintainers.marsam ];
license = licenses.mit;
};
}