Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
numpy,
onnx,
skl2onnx,
# tests
pytestCheckHook,
pandas,
xgboost,
onnxruntime,
scikit-learn,
pyspark,
lightgbm,
}:
buildPythonPackage rec {
pname = "onnxmltools";
version = "1.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "onnx";
repo = "onnxmltools";
tag = version;
hash = "sha256-CcZlGLX8/ANHnhoOv5s/ybBN74gRH/8eLYJ6q/BJo/4=";
};
build-system = [
setuptools
];
dependencies = [
numpy
onnx
skl2onnx
];
pythonImportsCheck = [ "onnxmltools" ];
# there are still some dependencies that need to be packaged for the tests to run
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
pandas
xgboost
onnxruntime
scikit-learn
pyspark
lightgbm
# coremltools
# libsvm
# h20
];
meta = {
description = "ONNXMLTools enables conversion of models to ONNX";
homepage = "https://github.com/onnx/onnxmltools";
changelog = "https://github.com/onnx/onnxmltools/blob/${src.tag}/CHANGELOGS.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
};
}