python310Packages.pycryptodome: fix build failure with march set

This commit is contained in:
Sandro Jäckel 2022-12-05 23:56:28 +01:00
parent 32df8276ec
commit 384e0e48e9

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, callPackage
, fetchFromGitHub
, fetchpatch
, cffi
, gmp
}:
@ -21,6 +22,13 @@ buildPythonPackage rec {
hash = "sha256-SPRoAfwP1MFlVzZsVWmXDWUY5Yje7eg7d+9zJhZNXrw=";
};
patches = [
(fetchpatch {
url = "https://github.com/Legrandin/pycryptodome/commit/1c043abb089ddbc2fc43d1c169672688ccc64c64.patch";
sha256 = "sha256-QklwOlFpQNAH0CpR06fWSZqx8C97RV8BRsKbp2j8js8=";
})
];
postPatch = ''
substituteInPlace lib/Crypto/Math/_IntegerGMP.py \
--replace 'load_lib("gmp"' 'load_lib("${gmp}/lib/libgmp.so.10"'