fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
56 lines
839 B
Nix
56 lines
839 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
catboost,
|
|
python,
|
|
graphviz,
|
|
matplotlib,
|
|
numpy,
|
|
pandas,
|
|
plotly,
|
|
scipy,
|
|
setuptools,
|
|
six,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (catboost)
|
|
pname
|
|
version
|
|
src
|
|
meta
|
|
;
|
|
format = "pyproject";
|
|
|
|
sourceRoot = "${src.name}/catboost/python-package";
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
graphviz
|
|
matplotlib
|
|
numpy
|
|
pandas
|
|
plotly
|
|
scipy
|
|
six
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
# these arguments must set after bdist_wheel
|
|
${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel --no-widget --prebuilt-extensions-build-root-dir=${lib.getDev catboost}
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
# setup a test is difficult
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "catboost" ];
|
|
}
|