Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 71 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, python3, fetchPypi, nix-update-script, testers, aws-encryption-sdk-cli}:
let localPython = python3.override { self = localPython; packageOverrides = final: prev: { urllib3 = prev.urllib3.overridePythonAttrs (prev: rec { pyproject = true; version = "1.26.18"; nativeBuildInputs = with final; [ setuptools ]; src = prev.src.override { inherit version; hash = "sha256-+OzBu6VmdBNFfFKauVW/jGe0XbeZ0VkGYmFxnjKFgKA="; }; }); }; };in
localPython.pkgs.buildPythonApplication rec { pname = "aws-encryption-sdk-cli"; version = "4.1.0";
src = fetchPypi { inherit pname version; hash = "sha256-OCbt0OkDVfpzUIogbsKzaPAle2L6l6N3cmZoS2hEaSM="; };
propagatedBuildInputs = with localPython.pkgs; [ attrs aws-encryption-sdk base64io urllib3 ];
doCheck = true;
nativeCheckInputs = with localPython.pkgs; [ mock pytest-mock pytestCheckHook ];
disabledTestPaths = [ # requires networking "test/integration" ];
passthru = { updateScript = nix-update-script { }; tests.version = testers.testVersion { package = aws-encryption-sdk-cli; command = "aws-encryption-cli --version"; }; };
meta = with lib; { homepage = "https://aws-encryption-sdk-cli.readthedocs.io/"; changelog = "https://github.com/aws/aws-encryption-sdk-cli/blob/v${version}/CHANGELOG.rst"; description = "CLI wrapper around aws-encryption-sdk-python"; license = licenses.asl20; mainProgram = "aws-encryption-cli"; maintainers = with maintainers; [ anthonyroussel ]; };}