1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{
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 ];
};
}
|