nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 74 lines 1.3 kB view raw
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.0.3"; 22 format = "pyproject"; 23 24 disabled = pythonOlder "3.6"; 25 26 src = fetchFromGitHub { 27 owner = "venth"; 28 repo = pname; 29 rev = "refs/tags/${version}"; 30 hash = "sha256-/cOJ8k8YuwTGEXrNuPFAYvDyDKERMJf3o3nRkDLkrJE="; 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 postPatch = '' 50 substituteInPlace pyproject.toml \ 51 --replace 'boto3 = "^1.20.50"' 'boto3 = "*"' \ 52 --replace 'botocore = ">=1.12.6"' 'botocore = "*"' 53 ''; 54 55 checkInputs = [ 56 pytestCheckHook 57 toml 58 ]; 59 60 preCheck = '' 61 export HOME=$(mktemp -d); 62 ''; 63 64 pythonImportsCheck = [ 65 "aws_adfs" 66 ]; 67 68 meta = with lib; { 69 description = "Command line tool to ease AWS CLI authentication against ADFS"; 70 homepage = "https://github.com/venth/aws-adfs"; 71 license = licenses.psfl; 72 maintainers = with maintainers; [ bhipple ]; 73 }; 74}