From dcd770c0adf3419ed48e16d8f3238acc8592b773 Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Tue, 16 Jun 2026 10:33:40 +0200 Subject: [PATCH] python3Packages.executorch: 1.2.0 -> 1.3.1 (#490038) --- .../python-modules/executorch/default.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/executorch/default.nix b/pkgs/development/python-modules/executorch/default.nix index 0fc670c7ded9..e4fe62894755 100644 --- a/pkgs/development/python-modules/executorch/default.nix +++ b/pkgs/development/python-modules/executorch/default.nix @@ -54,7 +54,7 @@ }: buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { pname = "executorch"; - version = "1.2.0"; + version = "1.3.1"; pyproject = true; __structuredAttrs = true; @@ -68,7 +68,7 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { name = "executorch"; fetchSubmodules = true; - hash = "sha256-Rkw6+keOygQaf6iOCpGoW9JgXiCimgx8gsxLEH3bxME="; + hash = "sha256-UyMPY+qYTHYZDeftj4YVqzO2ibTswzd+HWW5JeXHW0Q="; }; postPatch = @@ -76,8 +76,8 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { '' substituteInPlace exir/_serialize/_flatbuffer.py \ --replace-fail \ - 'flatc_path = "flatc"' \ - 'flatc_path = "${lib.getExe pkgs.flatbuffers}"' + '_flatc_cached_path = os.getenv("FLATC_EXECUTABLE", "flatc")' \ + '_flatc_cached_path = os.getenv("FLATC_EXECUTABLE", "${lib.getExe pkgs.flatbuffers}")' '' # Relax build-system dependencies + '' @@ -102,13 +102,6 @@ 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 = {