2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
boto3,
|
|
|
|
botocore,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
configparser,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fido2,
|
|
|
|
lxml,
|
|
|
|
poetry-core,
|
|
|
|
pyopenssl,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
requests,
|
|
|
|
requests-kerberos,
|
|
|
|
toml,
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-adfs";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.11.2";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "venth";
|
2024-06-24 18:47:55 +00:00
|
|
|
repo = "aws-adfs";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-ZzQ92VBa8CApd0WkfPrUZsEZICK2fhwmt45P2sx2mK0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
build-system = [
|
2022-04-27 09:35:20 +00:00
|
|
|
poetry-core
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"configparser"
|
|
|
|
"requests-kerberos"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
dependencies = [
|
2022-04-27 09:35:20 +00:00
|
|
|
boto3
|
2021-04-05 15:23:46 +00:00
|
|
|
botocore
|
|
|
|
click
|
|
|
|
configparser
|
|
|
|
fido2
|
|
|
|
lxml
|
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
requests-kerberos
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
toml
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aws_adfs" ];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Command line tool to ease AWS CLI authentication against ADFS";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/venth/aws-adfs";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/venth/aws-adfs/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.psfl;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2024-06-24 18:47:55 +00:00
|
|
|
mainProgram = "aws-adfs";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|