From e7d67d857632b609b4cf33b9a213d2af224f47db Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 16 May 2022 23:31:51 -0400 Subject: python3Packages.lhapdf: fix for python 3.10+ --- pkgs/development/libraries/physics/lhapdf/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkgs/development/libraries/physics') diff --git a/pkgs/development/libraries/physics/lhapdf/default.nix b/pkgs/development/libraries/physics/lhapdf/default.nix index eb891fd4dbe35..c31d9794407f5 100644 --- a/pkgs/development/libraries/physics/lhapdf/default.nix +++ b/pkgs/development/libraries/physics/lhapdf/default.nix @@ -15,9 +15,14 @@ stdenv.mkDerivation rec { substituteInPlace src/GridPDF.cc --replace '#include ' '#include ' ''; - 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 = { -- cgit 1.4.1