2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
74 lines
1.2 KiB
Nix
74 lines
1.2 KiB
Nix
{ lib
|
|
, boto3
|
|
, botocore
|
|
, buildPythonPackage
|
|
, click
|
|
, configparser
|
|
, fetchFromGitHub
|
|
, fido2
|
|
, lxml
|
|
, poetry-core
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-kerberos
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aws-adfs";
|
|
version = "2.0.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "venth";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/cOJ8k8YuwTGEXrNuPFAYvDyDKERMJf3o3nRkDLkrJE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
boto3
|
|
botocore
|
|
click
|
|
configparser
|
|
fido2
|
|
lxml
|
|
pyopenssl
|
|
requests
|
|
requests-kerberos
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'boto3 = "^1.20.50"' 'boto3 = "*"' \
|
|
--replace 'botocore = ">=1.12.6"' 'botocore = "*"'
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
toml
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d);
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"aws_adfs"
|
|
];
|
|
|
|
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 = with maintainers; [ bhipple ];
|
|
};
|
|
}
|