Files
nixpkgs/pkgs/development/python-modules/aws-adfs/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

76 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.12.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "venth";
repo = "aws-adfs";
tag = "v${version}";
hash = "sha256-U1ptI/VynHArJ1SwX4LanHB0f4U38YZO9XDCXcLBu+s=";
};
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";
};
}