Files
2026-07-18 00:38:02 +00:00

73 lines
1.2 KiB
Nix

{
lib,
boto3,
botocore,
buildPythonPackage,
click,
configparser,
fetchFromGitHub,
fido2,
lxml,
poetry-core,
pyopenssl,
pytestCheckHook,
requests,
requests-kerberos,
toml,
}:
buildPythonPackage rec {
pname = "aws-adfs";
version = "2.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "venth";
repo = "aws-adfs";
tag = "v${version}";
hash = "sha256-FqE4v6Ao8Gc0S1w4GN9rytXqIt2CMQOlO81mXe8xZtM=";
};
build-system = [
poetry-core
];
pythonRelaxDeps = [
"configparser"
"fido2"
"lxml"
"requests-kerberos"
];
dependencies = [
boto3
botocore
click
configparser
fido2
lxml
pyopenssl
requests
requests-kerberos
];
nativeCheckInputs = [
pytestCheckHook
toml
];
preCheck = ''
export HOME=$(mktemp -d);
'';
pythonImportsCheck = [ "aws_adfs" ];
meta = {
description = "Command line tool to ease AWS CLI authentication against ADFS";
homepage = "https://github.com/venth/aws-adfs";
changelog = "https://github.com/venth/aws-adfs/releases/tag/${src.tag}";
license = lib.licenses.psfl;
mainProgram = "aws-adfs";
};
}