{ stdenv , buildPythonPackage , fetchPypi , cmake , numpy , scipy , scikitlearn , llvmPackages ? null }: buildPythonPackage rec { pname = "lightgbm"; version = "3.1.0"; src = fetchPypi { inherit pname version; sha256 = "0d0abcb1035a7f50226412a78993d61830621e16fd6fa685bbf178c97b0d6e82"; }; 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 = stdenv.lib.optionalString stdenv.cc.isClang '' cat >> setup.cfg <