python3Packages.lhapdf: fix for python 3.10+

This commit is contained in:
Dmitry Kalinkin
2022-05-16 23:31:51 -04:00
parent 0c86c19d22
commit e7d67d8576
@@ -15,9 +15,14 @@ stdenv.mkDerivation rec {
substituteInPlace src/GridPDF.cc --replace '#include <locale>' '#include <xlocale.h>'
'';
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [ makeWrapper ]
++ lib.optionals (lib.versionAtLeast python.version "3.10") [ python.pkgs.cython ];
buildInputs = [ python ];
preBuild = lib.optionalString (lib.versionAtLeast python.version "3.10") ''
rm wrappers/python/lhapdf.cpp
'';
enableParallelBuilding = true;
passthru = {