{ lib, stdenv , buildPythonPackage , fetchPypi , cmake , numpy , scipy , scikit-learn , llvmPackages ? null }: buildPythonPackage rec { pname = "lightgbm"; version = "3.2.0"; src = fetchPypi { inherit pname version; sha256 = "000c6e0e225834a8a94a84571cf41e4b7c7b97a0db6d286c1237de8ba6066726"; }; nativeBuildInputs = [ cmake ]; dontUseCmakeConfigure = true; # we never actually explicitly call the install command so this is the only way # to inject these options to it - however, openmp-library doesn't appear to have # any effect, so we have to inject it into NIX_LDFLAGS manually below postPatch = lib.optionalString stdenv.cc.isClang '' cat >> setup.cfg <