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-04-29 16:46:19 +00:00
|
|
|
version = "1.14.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-gF+XOgAILSlM+hU1s3Xz+zD7nPtwW9a0mOHp8rxthnY=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|