{ stdenv , buildPythonPackage , fetchPypi , cmake , numpy , scipy , scikitlearn , llvmPackages ? null }: buildPythonPackage rec { pname = "lightgbm"; version = "3.0.0"; src = fetchPypi { inherit pname version; sha256 = "05f5b358469a679dbf27521d926750ca53ff1e61a6c0293d49af30094ebd9d4a"; }; 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 <