From 45f0137e81ff0576e3c46f6974aa131e7b314513 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 11 Jun 2026 07:41:18 +0000 Subject: [PATCH] python3Packages.executorch: fix failing test --- pkgs/development/python-modules/executorch/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/executorch/default.nix b/pkgs/development/python-modules/executorch/default.nix index 16c5f2255d10..0fc670c7ded9 100644 --- a/pkgs/development/python-modules/executorch/default.nix +++ b/pkgs/development/python-modules/executorch/default.nix @@ -102,6 +102,13 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { sed -i "1i #include " backends/apple/coreml/runtime/inmemoryfs/memory_buffer.hpp sed -i "1i #include " extension/llm/tokenizers/third-party/sentencepiece/src/sentencepiece_processor.h + '' + # AssertionError: '1.3.0' != '0.1.0' + + '' + substituteInPlace extension/llm/tokenizers/test/test_python_bindings.py \ + --replace-fail \ + 'self.assertEqual(pytorch_tokenizers.__version__, "0.1.0")' \ + 'self.assertEqual(pytorch_tokenizers.__version__, "${pytorch-tokenizers.version}")' ''; env = {