1{ lib 2, python3Packages 3, fetchPypi 4, nix-update-script 5, testers 6, aws-encryption-sdk-cli 7}: 8 9python3Packages.buildPythonApplication rec { 10 pname = "aws-encryption-sdk-cli"; 11 version = "4.1.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-OCbt0OkDVfpzUIogbsKzaPAle2L6l6N3cmZoS2hEaSM="; 16 }; 17 18 propagatedBuildInputs = with python3Packages; [ 19 attrs 20 aws-encryption-sdk 21 base64io 22 ]; 23 24 doCheck = true; 25 26 nativeCheckInputs = with python3Packages; [ 27 mock 28 pytest-mock 29 pytestCheckHook 30 ]; 31 32 disabledTestPaths = [ 33 # requires networking 34 "test/integration" 35 ]; 36 37 passthru = { 38 updateScript = nix-update-script { }; 39 tests.version = testers.testVersion { 40 package = aws-encryption-sdk-cli; 41 command = "aws-encryption-cli --version"; 42 }; 43 }; 44 45 meta = with lib; { 46 homepage = "https://aws-encryption-sdk-cli.readthedocs.io/"; 47 changelog = "https://github.com/aws/aws-encryption-sdk-cli/blob/v${version}/CHANGELOG.rst"; 48 description = "CLI wrapper around aws-encryption-sdk-python"; 49 license = licenses.asl20; 50 mainProgram = "aws-encryption-cli"; 51 maintainers = with maintainers; [ anthonyroussel ]; 52 }; 53}