python310Packages.onnxmltools: init at 1.11.2
This commit is contained in:
parent
bfc44cf9fe
commit
6955151120
59
pkgs/development/python-modules/onnxmltools/default.nix
Normal file
59
pkgs/development/python-modules/onnxmltools/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, numpy
|
||||||
|
, onnx
|
||||||
|
, skl2onnx
|
||||||
|
# native check inputs
|
||||||
|
, pytestCheckHook
|
||||||
|
, pandas
|
||||||
|
, xgboost
|
||||||
|
, onnxruntime
|
||||||
|
, scikit-learn
|
||||||
|
, pyspark
|
||||||
|
, lightgbm
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "onnxmltools";
|
||||||
|
version = "1.11.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "onnx";
|
||||||
|
repo = "onnxmltools";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-uLFAGtCDLdMd0SMoonMXFE0kGHuDpwp6IrIbD0t8l4M=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
numpy
|
||||||
|
onnx
|
||||||
|
skl2onnx
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "onnxmltools" ];
|
||||||
|
|
||||||
|
# there are still some dependencies that need to be packaged for the tests to run
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pandas
|
||||||
|
xgboost
|
||||||
|
onnxruntime
|
||||||
|
scikit-learn
|
||||||
|
pyspark
|
||||||
|
lightgbm
|
||||||
|
# coremltools
|
||||||
|
# libsvm
|
||||||
|
# h20
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "ONNXMLTools enables conversion of models to ONNX";
|
||||||
|
homepage = "https://github.com/onnx/onnxmltools";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ happysalada ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7315,6 +7315,8 @@ self: super: with self; {
|
||||||
|
|
||||||
onnxconverter-common = callPackage ../development/python-modules/onnxconverter-common { };
|
onnxconverter-common = callPackage ../development/python-modules/onnxconverter-common { };
|
||||||
|
|
||||||
|
onnxmltools = callPackage ../development/python-modules/onnxmltools { };
|
||||||
|
|
||||||
onnxruntime = callPackage ../development/python-modules/onnxruntime {
|
onnxruntime = callPackage ../development/python-modules/onnxruntime {
|
||||||
onnxruntime = pkgs.onnxruntime.override {
|
onnxruntime = pkgs.onnxruntime.override {
|
||||||
python3Packages = self;
|
python3Packages = self;
|
||||||
|
|
Loading…
Reference in a new issue