at master 969 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 catboost, 5 python, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 graphviz, 12 matplotlib, 13 numpy, 14 pandas, 15 plotly, 16 scipy, 17 six, 18}: 19 20buildPythonPackage rec { 21 inherit (catboost) 22 pname 23 version 24 src 25 ; 26 pyproject = true; 27 28 sourceRoot = "${src.name}/catboost/python-package"; 29 30 build-system = [ 31 setuptools 32 ]; 33 34 dependencies = [ 35 graphviz 36 matplotlib 37 numpy 38 pandas 39 plotly 40 scipy 41 six 42 ]; 43 44 buildPhase = '' 45 runHook preBuild 46 47 # these arguments must set after bdist_wheel 48 ${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel --no-widget --prebuilt-extensions-build-root-dir=${lib.getDev catboost} 49 50 runHook postBuild 51 ''; 52 53 # setup a test is difficult 54 doCheck = false; 55 56 pythonImportsCheck = [ "catboost" ]; 57 58 meta = catboost.meta // { 59 # https://github.com/catboost/catboost/issues/2671 60 broken = lib.versionAtLeast numpy.version "2"; 61 }; 62}