My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/skl2onnx/default.nix

49 lines
782 B

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, protobuf
, onnx
, scikit-learn
, onnxconverter-common
, onnxruntime
, pandas
, unittestCheckHook
}:
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
];
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 ];
};
}