From c065263d5c55647adec52d9419dbc0cae4ba5dc6 Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Tue, 16 Jun 2026 12:51:06 +0200 Subject: [PATCH 1/2] python3Packages.comet-ml: 3.55.0 -> 3.58.1 --- .../python-modules/comet-ml/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/comet-ml/default.nix b/pkgs/development/python-modules/comet-ml/default.nix index 0cc49b7171e4..63bd1bf22b8e 100644 --- a/pkgs/development/python-modules/comet-ml/default.nix +++ b/pkgs/development/python-modules/comet-ml/default.nix @@ -17,21 +17,24 @@ setuptools, simplejson, urllib3, + versionCheckHook, wrapt, wurlitzer, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "comet-ml"; - version = "3.55.0"; + version = "3.58.1"; + pyproject = true; + __structuredAttrs = true; + # No GitHub repository src = fetchPypi { pname = "comet_ml"; - inherit version; - hash = "sha256-bNfh6tVpsU2LrSLcAKy5lXLgd4lbo3/6dzzMB4+Eh08="; + inherit (finalAttrs) version; + hash = "sha256-6DHmsd7CcFd1QU06G09CVMeVuHGAtn8Rxsr1++epdeU="; }; - pyproject = true; build-system = [ setuptools ]; @@ -62,6 +65,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "comet_ml" ]; + nativeCheckInputs = [ + versionCheckHook + # Skip pytestCheckHook, as Python tests require a lot of additional dependencies to run. + ]; + meta = { description = "Platform designed to help machine learning teams track, compare, explain, and optimize their models"; homepage = "https://www.comet.com/site/"; @@ -70,4 +78,4 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ jherland ]; mainProgram = "comet"; }; -} +}) From dcd770c0adf3419ed48e16d8f3238acc8592b773 Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Tue, 16 Jun 2026 10:33:40 +0200 Subject: [PATCH 2/2] 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 = {