From 8d649cc301a235b0db1c95766c0c60b52e945da6 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 22 Jan 2026 00:11:42 +0000 Subject: [PATCH] python3Packages.pylance: 1.0.2 -> 1.0.3 Diff: https://github.com/lancedb/lance/compare/v1.0.2...v1.0.3 Changelog: https://github.com/lancedb/lance/releases/tag/v1.0.3 --- .../python-modules/pylance/default.nix | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pylance/default.nix b/pkgs/development/python-modules/pylance/default.nix index b37d5cd7e8b8..a084c467818e 100644 --- a/pkgs/development/python-modules/pylance/default.nix +++ b/pkgs/development/python-modules/pylance/default.nix @@ -34,14 +34,14 @@ buildPythonPackage (finalAttrs: { pname = "pylance"; - version = "1.0.2"; + version = "1.0.3"; pyproject = true; src = fetchFromGitHub { owner = "lancedb"; repo = "lance"; tag = "v${finalAttrs.version}"; - hash = "sha256-yhEM+1Rr0nEVj5XGQOjaZXlRQKnvPagvlNBhDfNUItw="; + hash = "sha256-k6dwZAKhziTDoOGsIj1tasF2QUn4EG1+ogeirCt3Kwc="; }; sourceRoot = "${finalAttrs.src.name}/python"; @@ -53,7 +53,7 @@ buildPythonPackage (finalAttrs: { src sourceRoot ; - hash = "sha256-aMgy20urjm5gRX2fOh/vAoGUpXvnG3oY8u/D8rfSbHw="; + hash = "sha256-8Ja6GrqZqq/zJCh/QiUrHaukHFMvGEcXKZmo1gZjGq8="; }; nativeBuildInputs = [ @@ -107,6 +107,13 @@ buildPythonPackage (finalAttrs: { "-Wignore::DeprecationWarning" ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [ + # RuntimeError: torch.compile is not supported on Python 3.14+ + "torch_tests/test_bench_utils.py" + "torch_tests/test_distance.py" + "torch_tests/test_torch_kmeans.py" + ]; + disabledTests = [ # Hangs indefinitely "test_all_permutations" @@ -148,6 +155,26 @@ buildPythonPackage (finalAttrs: { ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Build hangs after all the tests are run due to a torch subprocess not exiting "test_multiprocess_loading" + + # torch._inductor.exc.InductorError: CppCompileError: C++ compile error + # OpenMP support not found + # TODO: figure out why this only happens on python 3.13 and not 3.14 + "test_cosine_distance" + "test_ground_truth" + "test_index_cast_centroids" + "test_index_with_no_centroid_movement" + "test_l2_distance" + "test_l2_distance_f16_bf16_cpu" + "test_pairwise_cosine" + "test_torch_index_with_nans" + "test_torch_kmeans_nans" + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # RuntimeError: torch.compile is not supported on Python 3.14+ + "test_create_index_unsupported_accelerator" + "test_index_cast_centroids" + "test_index_with_no_centroid_movement" + "test_torch_index_with_nans" ]; __darwinAllowLocalNetworking = true;