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