Merge pull request #204702 from SuperSandro2000/pycryptodome-march

python310Packages.pycryptodome: fix build failure with march set
This commit is contained in:
Fabian Affolter
2022-12-06 09:16:00 +01:00
committed by GitHub
@@ -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"'