Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 pythonOlder, 15 requests, 16 requests-kerberos, 17 toml, 18}: 19 20buildPythonPackage rec { 21 pname = "aws-adfs"; 22 version = "2.11.2"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.7"; 26 27 src = fetchFromGitHub { 28 owner = "venth"; 29 repo = "aws-adfs"; 30 rev = "refs/tags/v${version}"; 31 hash = "sha256-ZzQ92VBa8CApd0WkfPrUZsEZICK2fhwmt45P2sx2mK0="; 32 }; 33 34 build-system = [ 35 poetry-core 36 ]; 37 38 pythonRelaxDeps = [ 39 "configparser" 40 "requests-kerberos" 41 ]; 42 43 dependencies = [ 44 boto3 45 botocore 46 click 47 configparser 48 fido2 49 lxml 50 pyopenssl 51 requests 52 requests-kerberos 53 ]; 54 55 nativeCheckInputs = [ 56 pytestCheckHook 57 toml 58 ]; 59 60 preCheck = '' 61 export HOME=$(mktemp -d); 62 ''; 63 64 pythonImportsCheck = [ "aws_adfs" ]; 65 66 meta = with lib; { 67 description = "Command line tool to ease AWS CLI authentication against ADFS"; 68 homepage = "https://github.com/venth/aws-adfs"; 69 changelog = "https://github.com/venth/aws-adfs/releases/tag/v${version}"; 70 license = licenses.psfl; 71 maintainers = with maintainers; [ bhipple ]; 72 mainProgram = "aws-adfs"; 73 }; 74}