2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
catboost,
|
|
|
|
python,
|
|
|
|
graphviz,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
plotly,
|
|
|
|
scipy,
|
|
|
|
setuptools,
|
|
|
|
six,
|
|
|
|
wheel,
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildPythonPackage rec {
|
2024-06-05 15:53:02 +00:00
|
|
|
inherit (catboost)
|
|
|
|
pname
|
|
|
|
version
|
|
|
|
src
|
|
|
|
meta
|
|
|
|
;
|
2023-10-19 13:55:26 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceRoot = "${src.name}/catboost/python-package";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
graphviz
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
plotly
|
|
|
|
scipy
|
|
|
|
six
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
# these arguments must set after bdist_wheel
|
2023-11-16 04:20:00 +00:00
|
|
|
${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel --no-widget --prebuilt-extensions-build-root-dir=${lib.getDev catboost}
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
runHook postBuild
|
2022-10-06 18:32:54 +00:00
|
|
|
'';
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
# setup a test is difficult
|
|
|
|
doCheck = false;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "catboost" ];
|
|
|
|
}
|