Skip to content

Commit

Permalink
python311Packages.cryptography: skip overflowing tests on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Feb 8, 2024
1 parent 6556cc0 commit ba83271
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/python-modules/cryptography/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
, cffi
, cryptography-vectors ? (callPackage ./vectors.nix { })
, fetchPypi
, fetchpatch2
, isPyPy
, libiconv
, libxcrypt
Expand Down Expand Up @@ -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" ""
Expand Down

0 comments on commit ba83271

Please sign in to comment.