2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, botocore
|
|
|
|
, requests, requests-kerberos, click, configparser, fido2, isPy27 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-adfs";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "1.24.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "6a78bd31477ea9988166215ae86abcbfe1413bee20373ecdf0dd170b7290db55";
|
2020-04-24 23:36:52 +00: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 ];
|
|
|
|
propagatedBuildInputs = [ botocore lxml requests requests-kerberos click configparser fido2 ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|