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