Skip to content

Commit ba83271

Browse files
committed
python311Packages.cryptography: skip overflowing tests on 32-bit
1 parent 6556cc0 commit ba83271

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • pkgs/development/python-modules/cryptography

pkgs/development/python-modules/cryptography/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
, cffi
88
, cryptography-vectors ? (callPackage ./vectors.nix { })
99
, fetchPypi
10+
, fetchpatch2
1011
, isPyPy
1112
, libiconv
1213
, libxcrypt
@@ -41,6 +42,14 @@ buildPythonPackage rec {
4142
hash = "sha256-jw/FC5rQO77h6omtBp0Nc2oitkVbNElbkBUduyprTIc=";
4243
};
4344

45+
patches = [
46+
(fetchpatch2 {
47+
# skip overflowing tests on 32 bit; https://github.com/pyca/cryptography/pull/10366
48+
url = "https://github.com/pyca/cryptography/commit/d741901dddd731895346636c0d3556c6fa51fbe6.patch";
49+
hash = "sha256-eC+MZg5O8Ia5CbjRE4y+JhaFs3Q5c62QtPHr3x9T+zw=";
50+
})
51+
];
52+
4453
postPatch = ''
4554
substituteInPlace pyproject.toml \
4655
--replace-fail "--benchmark-disable" ""

0 commit comments

Comments
 (0)