Skip to content

Commit

Permalink
python3Packages.skl2onnx: init at 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Sep 28, 2022
1 parent 18f7d4c commit d5f27c9
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/skl2onnx/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ 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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10167,6 +10167,8 @@ in {

skidl = callPackage ../development/python-modules/skidl { };

skl2onnx = callPackage ../development/python-modules/skl2onnx { };

sklearn-deap = callPackage ../development/python-modules/sklearn-deap { };

skodaconnect = callPackage ../development/python-modules/skodaconnect { };
Expand Down

0 comments on commit d5f27c9

Please sign in to comment.