2021-04-02 11:25:31 +01:00
|
|
|
{ lib
|
|
|
|
, botocore
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, configparser
|
|
|
|
, fetchPypi
|
|
|
|
, fido2
|
|
|
|
, glibcLocales
|
|
|
|
, isPy27
|
|
|
|
, lxml
|
|
|
|
, mock
|
|
|
|
, pyopenssl
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, requests-kerberos
|
|
|
|
}:
|
2018-07-15 16:16:32 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-adfs";
|
2020-10-25 09:06:50 +00:00
|
|
|
version = "1.24.5";
|
2019-12-13 08:47:13 +00:00
|
|
|
disabled = isPy27;
|
2018-07-15 16:16:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:50 +00:00
|
|
|
sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55";
|
2018-07-15 16:16:32 +01:00
|
|
|
};
|
|
|
|
|
2021-04-02 11:25:31 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
botocore
|
|
|
|
click
|
|
|
|
configparser
|
|
|
|
fido2
|
|
|
|
lxml
|
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
requests-kerberos
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
glibcLocales
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2018-07-15 16:16:32 +01:00
|
|
|
# Relax version constraint
|
2021-04-02 11:25:31 +01:00
|
|
|
postPatch = ''
|
2021-04-07 12:43:11 +01:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'coverage < 4' 'coverage' \
|
|
|
|
--replace 'fido2>=0.8.1,<0.9.0' 'fido2>=0.8.1,<1.0.0'
|
2018-07-15 16:16:32 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
|
2021-02-16 21:37:11 +00:00
|
|
|
pythonImportsCheck = [ "aws_adfs" ];
|
|
|
|
|
2019-09-06 04:59:20 +01:00
|
|
|
meta = with lib; {
|
2018-07-15 16:16:32 +01:00
|
|
|
description = "Command line tool to ease aws cli authentication against ADFS";
|
2020-04-01 07:44:34 +01:00
|
|
|
homepage = "https://github.com/venth/aws-adfs";
|
2019-09-06 04:59:20 +01:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = [ maintainers.bhipple ];
|
2018-07-15 16:16:32 +01:00
|
|
|
};
|
|
|
|
}
|