1{ lib 2, boto3 3, botocore 4, buildPythonPackage 5, click 6, configparser 7, fetchFromGitHub 8, fido2 9, lxml 10, poetry-core 11, pyopenssl 12, pytestCheckHook 13, pythonOlder 14, requests 15, requests-kerberos 16, toml 17}: 18 19buildPythonPackage rec { 20 pname = "aws-adfs"; 21 version = "2.9.0"; 22 pyproject = true; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "venth"; 28 repo = pname; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-IZeEb87NX3fyw1hENF1LldbgbaXXPG3u2AiCeci6MIw="; 31 }; 32 33 nativeBuildInputs = [ 34 poetry-core 35 ]; 36 37 propagatedBuildInputs = [ 38 boto3 39 botocore 40 click 41 configparser 42 fido2 43 lxml 44 pyopenssl 45 requests 46 requests-kerberos 47 ]; 48 49 nativeCheckInputs = [ 50 pytestCheckHook 51 toml 52 ]; 53 54 preCheck = '' 55 export HOME=$(mktemp -d); 56 ''; 57 58 pythonImportsCheck = [ 59 "aws_adfs" 60 ]; 61 62 meta = with lib; { 63 description = "Command line tool to ease AWS CLI authentication against ADFS"; 64 homepage = "https://github.com/venth/aws-adfs"; 65 changelog = "https://github.com/venth/aws-adfs/releases/tag/v${version}"; 66 license = licenses.psfl; 67 maintainers = with maintainers; [ bhipple ]; 68 }; 69}