From a2e7a3c2f99228f645e2bfe779b48a6dbe75531e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 23 May 2025 17:03:11 +0200 Subject: [PATCH] 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 --- .../development/python-modules/onnx/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/onnx/default.nix b/pkgs/development/python-modules/onnx/default.nix index f0fa2543f0b8..dfdd52372c14 100644 --- a/pkgs/development/python-modules/onnx/default.nix +++ b/pkgs/development/python-modules/onnx/default.nix @@ -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 = [