From 933789df7550ff915920e08a0ed763e5c7ae9c51 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 12 Dec 2025 21:35:10 +0000 Subject: [PATCH 1/2] python3Packages.pylance: 0.39.0 -> 1.0.0 Diff: https://github.com/lancedb/lance/compare/v0.39.0...v1.0.0 Changelog: https://github.com/lancedb/lance/releases/tag/v1.0.0 --- pkgs/development/python-modules/pylance/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pylance/default.nix b/pkgs/development/python-modules/pylance/default.nix index 08d47fda0d57..266c5ca35406 100644 --- a/pkgs/development/python-modules/pylance/default.nix +++ b/pkgs/development/python-modules/pylance/default.nix @@ -33,14 +33,14 @@ buildPythonPackage rec { pname = "pylance"; - version = "0.39.0"; + version = "1.0.0"; pyproject = true; src = fetchFromGitHub { owner = "lancedb"; repo = "lance"; tag = "v${version}"; - hash = "sha256-e0ZpuC0ezk+ZwmCrWkdD2MnCvnjHVVPsN01JWUNyPf4="; + hash = "sha256-SPvJHa8oVgydWSvTR7RWF3ojKmz4BOJgo1fiwjCtYLU="; }; sourceRoot = "${src.name}/python"; @@ -52,7 +52,7 @@ buildPythonPackage rec { src sourceRoot ; - hash = "sha256-bvnmlUSnZolwesGtIrWve0a8yQXeYDuaP7mCh3KDd5U="; + hash = "sha256-dPfj8Zd5+pW4Xe6IFaOcvcJdzcuC6qURSNJRcbceoHg="; }; nativeBuildInputs = [ @@ -144,6 +144,8 @@ buildPythonPackage rec { "test_multiprocess_loading" ]; + __darwinAllowLocalNetworking = true; + meta = { description = "Python wrapper for Lance columnar format"; homepage = "https://github.com/lancedb/lance"; From 8988142b8982f7114f34e0a6518667a86ccf15d7 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 12 Dec 2025 22:05:52 +0000 Subject: [PATCH 2/2] python3Packages.lancedb: 0.21.2 -> 0.26.0 Diff: https://github.com/lancedb/lancedb/compare/python-v0.21.2...python-v0.26.0 Changelog: https://github.com/lancedb/lancedb/releases/tag/python-v0.26.0 --- .../python-modules/lancedb/default.nix | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/lancedb/default.nix b/pkgs/development/python-modules/lancedb/default.nix index 2a684f8ee4bf..695014e408d0 100644 --- a/pkgs/development/python-modules/lancedb/default.nix +++ b/pkgs/development/python-modules/lancedb/default.nix @@ -14,40 +14,48 @@ # dependencies deprecation, - overrides, + lance-namespace, + numpy, packaging, pyarrow, pydantic, tqdm, + pythonOlder, + overrides, # tests aiohttp, + boto3, + datafusion, + duckdb, pandas, polars, pylance, pytest-asyncio, + pytest-mock, pytestCheckHook, - duckdb, + tantivy, + nix-update-script, }: buildPythonPackage rec { pname = "lancedb"; - version = "0.21.2"; + version = "0.26.0"; pyproject = true; src = fetchFromGitHub { owner = "lancedb"; repo = "lancedb"; tag = "python-v${version}"; - hash = "sha256-ZPVkMlZz6lSF4ZCIX6fGcfCvni3kXCLPLXZqZw7icpE="; + hash = "sha256-urOHHuPFce7Ms1EqjM4n72zx0APVrIQ1bLIkmrp/Dec="; }; buildAndTestSubdir = "python"; cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; - hash = "sha256-Q3ejJsddHLGGbw3peLRtjPqBrS6fNi0C3K2UWpcM/4k="; + hash = "sha256-03p1mDsE//YafUGImB9xMqqUzKlBD9LCiV1RGP2L5lw="; }; build-system = [ rustPlatform.maturinBuildHook ]; @@ -62,30 +70,33 @@ buildPythonPackage rec { openssl ]; - pythonRelaxDeps = [ - # pylance is pinned to a specific release - "pylance" - ]; - dependencies = [ deprecation - overrides + lance-namespace + numpy packaging pyarrow pydantic tqdm + ] + ++ lib.optionals (pythonOlder "3.12") [ + overrides ]; pythonImportsCheck = [ "lancedb" ]; nativeCheckInputs = [ aiohttp + boto3 + datafusion duckdb pandas polars pylance pytest-asyncio + pytest-mock pytestCheckHook + tantivy ]; preCheck = '' @@ -95,10 +106,6 @@ buildPythonPackage rec { disabledTestMarks = [ "slow" ]; disabledTests = [ - # require tantivy which is not packaged in nixpkgs - "test_basic" - "test_fts_native" - # polars.exceptions.ComputeError: TypeError: _scan_pyarrow_dataset_impl() got multiple values for argument 'batch_size' # https://github.com/lancedb/lancedb/issues/1539 "test_polars" @@ -106,6 +113,7 @@ buildPythonPackage rec { disabledTestPaths = [ # touch the network + "test_namespace_integration.py" "test_s3.py" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [