nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 72 lines 1.2 kB view raw
1{ 2 lib, 3 boto3, 4 botocore, 5 buildPythonPackage, 6 click, 7 configparser, 8 fetchFromGitHub, 9 fido2, 10 lxml, 11 poetry-core, 12 pyopenssl, 13 pytestCheckHook, 14 requests, 15 requests-kerberos, 16 toml, 17}: 18 19buildPythonPackage rec { 20 pname = "aws-adfs"; 21 version = "2.12.1"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "venth"; 26 repo = "aws-adfs"; 27 tag = "v${version}"; 28 hash = "sha256-U1ptI/VynHArJ1SwX4LanHB0f4U38YZO9XDCXcLBu+s="; 29 }; 30 31 build-system = [ 32 poetry-core 33 ]; 34 35 pythonRelaxDeps = [ 36 "configparser" 37 "fido2" 38 "lxml" 39 "requests-kerberos" 40 ]; 41 42 dependencies = [ 43 boto3 44 botocore 45 click 46 configparser 47 fido2 48 lxml 49 pyopenssl 50 requests 51 requests-kerberos 52 ]; 53 54 nativeCheckInputs = [ 55 pytestCheckHook 56 toml 57 ]; 58 59 preCheck = '' 60 export HOME=$(mktemp -d); 61 ''; 62 63 pythonImportsCheck = [ "aws_adfs" ]; 64 65 meta = { 66 description = "Command line tool to ease AWS CLI authentication against ADFS"; 67 homepage = "https://github.com/venth/aws-adfs"; 68 changelog = "https://github.com/venth/aws-adfs/releases/tag/${src.tag}"; 69 license = lib.licenses.psfl; 70 mainProgram = "aws-adfs"; 71 }; 72}