2018-07-15 17:16:32 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-04-01 08:44:34 +02:00
|
|
|
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, botocore
|
2020-01-07 23:38:31 +01:00
|
|
|
, requests, requests-kerberos, click, configparser, fido2, isPy27 }:
|
2018-07-15 17:16:32 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-adfs";
|
2020-10-25 10:06:50 +01:00
|
|
|
version = "1.24.5";
|
2019-12-13 09:47:13 +01:00
|
|
|
disabled = isPy27;
|
2018-07-15 17:16:32 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 10:06:50 +01:00
|
|
|
sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55";
|
2018-07-15 17:16:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Relax version constraint
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/coverage < 4/coverage/' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Test suite writes files to $HOME/.aws/, or /homeless-shelter if unset
|
|
|
|
HOME = ".";
|
|
|
|
|
|
|
|
# Required for python3 tests, along with glibcLocales
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
|
2020-04-01 08:44:34 +02:00
|
|
|
propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ];
|
2018-07-15 17:16:32 +02:00
|
|
|
|
2021-02-16 22:37:11 +01:00
|
|
|
pythonImportsCheck = [ "aws_adfs" ];
|
|
|
|
|
2019-09-06 05:59:20 +02:00
|
|
|
meta = with lib; {
|
2018-07-15 17:16:32 +02:00
|
|
|
description = "Command line tool to ease aws cli authentication against ADFS";
|
2020-04-01 08:44:34 +02:00
|
|
|
homepage = "https://github.com/venth/aws-adfs";
|
2019-09-06 05:59:20 +02:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = [ maintainers.bhipple ];
|
2018-07-15 17:16:32 +02:00
|
|
|
};
|
|
|
|
}
|