python3Packages.onnx: 1.8.1 -> 1.9.0

This commit is contained in:
Aiken Cairncross 2021-04-23 19:59:09 +01:00 committed by Jonathan Ringer
parent 8931b66733
commit 789398cfa3

View File

@ -8,25 +8,22 @@
, numpy
, six
, typing-extensions
, typing
, pytestCheckHook
, pytestrunner
, pytest
, nbval
, tabulate
}:
buildPythonPackage rec {
pname = "onnx";
version = "1.8.1";
version = "1.9.0";
# Due to Protobuf packaging issues this build of Onnx with Python 2 gives
# errors on import.
# Also support for Python 2 will be deprecated from Onnx v1.8.
# Python 2 is not supported as of Onnx v1.8
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "9d65c52009a90499f8c25fdfe5acda3ac88efe0788eb1d5f2575a989277145fb";
sha256 = "0yjv2axz2vc2ysniwislsp53fsb8f61y1warrr2ppn2d9ijml1d9";
};
nativeBuildInputs = [ cmake ];
@ -36,11 +33,11 @@ buildPythonPackage rec {
numpy
six
typing-extensions
] ++ lib.optional (pythonOlder "3.5") [ typing ];
];
checkInputs = [
pytestCheckHook
pytestrunner
pytest
nbval
tabulate
];