From 4b11ab1f1238c8f3c00fa05af17b8b76c8211a7d Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Sat, 25 Mar 2023 00:50:08 -0700 Subject: [PATCH] python310Packages.aws-lambda-builders: Fix build under setuptools 66+ This fixes https://github.com/NixOS/nixpkgs/issues/223024 The build was failing due to this upstream issue: https://github.com/aws/aws-lambda-builders/issues/474 --- .../python-modules/aws-lambda-builders/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/aws-lambda-builders/default.nix b/pkgs/development/python-modules/aws-lambda-builders/default.nix index f33dae1b1b7f..59ef375a3cd4 100644 --- a/pkgs/development/python-modules/aws-lambda-builders/default.nix +++ b/pkgs/development/python-modules/aws-lambda-builders/default.nix @@ -2,6 +2,7 @@ , lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , mock , parameterized , pyelftools @@ -28,6 +29,15 @@ buildPythonPackage rec { six ]; + patches = [ + # This patch can be removed once https://github.com/aws/aws-lambda-builders/pull/475 has been merged. + (fetchpatch { + name = "setuptools-66-support"; + url = "https://patch-diff.githubusercontent.com/raw/aws/aws-lambda-builders/pull/475.patch"; + sha256 = "sha256-EkYQ6DNzbSnvkOads0GFwpGzeuBoLVU42THlSZNOHMc="; + }) + ]; + nativeCheckInputs = [ mock parameterized