2022-09-27 14:05:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, protobuf
|
|
|
|
, onnx
|
|
|
|
, scikit-learn
|
|
|
|
, onnxconverter-common
|
|
|
|
, onnxruntime
|
|
|
|
, pandas
|
|
|
|
, unittestCheckHook
|
2022-10-22 09:53:17 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-09-27 14:05:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "skl2onnx";
|
|
|
|
version = "1.13";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-XzUva5uFX/rGMFpwfwLH1Db0Nok47pBJCSqVo1ZcJz0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
protobuf
|
|
|
|
onnx
|
|
|
|
scikit-learn
|
|
|
|
onnxconverter-common
|
|
|
|
];
|
|
|
|
|
2022-10-22 09:53:17 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [ "scikit-learn" ];
|
|
|
|
|
2022-09-27 14:05:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|