python312Packages.onnx: 1.17.0 -> 1.18.0

Diff: https://github.com/onnx/onnx/compare/refs/tags/v1.17.0...refs/tags/v1.18.0

Changelog: https://github.com/onnx/onnx/releases/tag/v1.18.0
This commit is contained in:
Gaetan Lepage
2025-05-24 09:31:29 +02:00
parent 5bff8f4c86
commit a2e7a3c2f9
@@ -15,13 +15,17 @@
# dependencies
numpy,
typing-extensions,
# tests
google-re2,
ml-dtypes,
nbval,
parameterized,
pillow,
pytestCheckHook,
tabulate,
writableTmpDirAsHomeHook,
}:
let
@@ -29,14 +33,14 @@ let
in
buildPythonPackage rec {
pname = "onnx";
version = "1.17.0";
version = "1.18.0";
pyproject = true;
src = fetchFromGitHub {
owner = "onnx";
repo = "onnx";
tag = "v${version}";
hash = "sha256-9oORW0YlQ6SphqfbjcYb0dTlHc+1gzy9quH/Lj6By8Q=";
hash = "sha256-UhtF+CWuyv5/Pq/5agLL4Y95YNP63W2BraprhRqJOag=";
};
build-system = [
@@ -54,15 +58,18 @@ buildPythonPackage rec {
dependencies = [
protobuf
numpy
typing-extensions
];
nativeCheckInputs = [
google-re2
ml-dtypes
nbval
parameterized
pillow
pytestCheckHook
tabulate
writableTmpDirAsHomeHook
];
postPatch = ''
@@ -92,11 +99,9 @@ buildPythonPackage rec {
# The setup.py does all the configuration
dontUseCmakeConfigure = true;
# detecting source dir as a python package confuses pytest
preCheck = ''
export HOME=$(mktemp -d)
# detecting source dir as a python package confuses pytest
mv onnx/__init__.py onnx/__init__.py.hidden
rm onnx/__init__.py
'';
pytestFlagsArray = [