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