From ba83271df0ecfd8e9f149b632f370512ff946734 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 8 Feb 2024 16:20:42 +0100 Subject: [PATCH] python311Packages.cryptography: skip overflowing tests on 32-bit --- pkgs/development/python-modules/cryptography/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 4d30630759bb..4ae2e77de6ac 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -7,6 +7,7 @@ , cffi , cryptography-vectors ? (callPackage ./vectors.nix { }) , fetchPypi +, fetchpatch2 , isPyPy , libiconv , libxcrypt @@ -41,6 +42,14 @@ buildPythonPackage rec { hash = "sha256-jw/FC5rQO77h6omtBp0Nc2oitkVbNElbkBUduyprTIc="; }; + patches = [ + (fetchpatch2 { + # skip overflowing tests on 32 bit; https://github.com/pyca/cryptography/pull/10366 + url = "https://github.com/pyca/cryptography/commit/d741901dddd731895346636c0d3556c6fa51fbe6.patch"; + hash = "sha256-eC+MZg5O8Ia5CbjRE4y+JhaFs3Q5c62QtPHr3x9T+zw="; + }) + ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "--benchmark-disable" ""