2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, botocore
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, configparser
|
|
|
|
, fetchPypi
|
|
|
|
, fido2
|
|
|
|
, glibcLocales
|
|
|
|
, isPy27
|
|
|
|
, lxml
|
|
|
|
, mock
|
|
|
|
, pyopenssl
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, requests-kerberos
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-adfs";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-+WMv52JIbh51pqLhDnUCzrcbPD5eutzwFcPOhO+nR7s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
botocore
|
|
|
|
click
|
|
|
|
configparser
|
|
|
|
fido2
|
|
|
|
lxml
|
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
requests-kerberos
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
glibcLocales
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Relax version constraint
|
2021-04-05 15:23:46 +00:00
|
|
|
postPatch = ''
|
2021-04-08 16:26:57 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'coverage < 4' 'coverage' \
|
|
|
|
--replace 'fido2>=0.8.1,<0.9.0' 'fido2>=0.8.1,<1.0.0'
|
2020-04-24 23:36:52 +00: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-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "aws_adfs" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line tool to ease aws cli authentication against ADFS";
|
|
|
|
homepage = "https://github.com/venth/aws-adfs";
|
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = [ maintainers.bhipple ];
|
|
|
|
};
|
|
|
|
}
|