2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
protobuf,
|
|
|
|
onnx,
|
|
|
|
scikit-learn,
|
|
|
|
onnxconverter-common,
|
|
|
|
onnxruntime,
|
|
|
|
pandas,
|
|
|
|
unittestCheckHook,
|
|
|
|
pythonRelaxDepsHook,
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "skl2onnx";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.16.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-M3Cz1AZc4txZM4eMMnP0rqQflFzGUUVDsTrS1X82nOU=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
protobuf
|
|
|
|
onnx
|
|
|
|
scikit-learn
|
|
|
|
onnxconverter-common
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
pythonRelaxDeps = [ "scikit-learn" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
onnxruntime
|
|
|
|
pandas
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
unittestFlagsArray = [
|
|
|
|
"-s"
|
|
|
|
"tests"
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
# Core dump
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convert scikit-learn models to ONNX";
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
};
|
|
|
|
}
|