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