python312Packages.pylance: 0.22.0 -> 0.23.0

Diff: https://github.com/lancedb/lance/compare/v0.22.0...v0.23.0

Changelog: https://github.com/lancedb/lance/releases/tag/v0.23.0
This commit is contained in:
Gaetan Lepage
2025-02-08 15:38:42 +01:00
parent 2e52782b05
commit 278f8ed65d
2 changed files with 20 additions and 32 deletions
@@ -9,10 +9,8 @@
pkg-config,
# buildInputs
libiconv,
openssl,
protobuf,
darwin,
# dependencies
numpy,
@@ -36,14 +34,14 @@
buildPythonPackage rec {
pname = "pylance";
version = "0.22.0";
version = "0.23.0";
pyproject = true;
src = fetchFromGitHub {
owner = "lancedb";
repo = "lance";
tag = "v${version}";
hash = "sha256-UOrkVHgTX1JK6chYJ6I+VJUquwsKLnOI5solS9W21HY=";
hash = "sha256-I8v690MTEYWy3NjbElD3bzhBR4RcvzRKoJoKbL2f/JE=";
};
sourceRoot = "${src.name}/python";
@@ -55,7 +53,7 @@ buildPythonPackage rec {
src
sourceRoot
;
hash = "sha256-D9+rKV4rF5AVMxFfEohHufHC2mO75M80TuZaHDI0XMU=";
hash = "sha256-vNVS+ps+lTQ4M5hl+0TWItVO3U2SN64jDHhblODmIT0=";
};
nativeBuildInputs = [
@@ -69,19 +67,10 @@ buildPythonPackage rec {
rustPlatform.maturinBuildHook
];
buildInputs =
[
libiconv
openssl
protobuf
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
SystemConfiguration
]
);
buildInputs = [
openssl
protobuf
];
pythonRelaxDeps = [ "pyarrow" ];
@@ -111,22 +100,26 @@ buildPythonPackage rec {
'';
disabledTests =
lib.optionals stdenv.hostPlatform.isDarwin [
[
# Writes to read-only build directory
"test_add_data_storage_version"
"test_fix_data_storage_version"
]
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
# OSError: LanceError(IO): Resources exhausted: Failed to allocate additional 1245184 bytes for ExternalSorter[0]...
"test_merge_insert_large"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# AttributeError: module 'torch.distributed' has no attribute 'is_initialized'
"test_blob_api"
"test_convert_int_tensors"
"test_filtered_sampling_odd_batch_size"
"test_ground_truth"
"test_index_cast_centroids"
"test_index_with_no_centroid_movement"
"test_iter_filter"
"test_iter_over_dataset_fixed_shape_tensor"
"test_iter_over_dataset_fixed_size_lists"
]
++ [
# incompatible with duckdb 1.1.1
"test_duckdb_pushdown_extension_types"
# Writes to read-only build directory
"test_add_data_storage_version"
"test_fix_data_storage_version"
];
passthru.updateScript = nix-update-script { };
@@ -137,8 +130,5 @@ buildPythonPackage rec {
changelog = "https://github.com/lancedb/lance/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ natsukium ];
# test_indices.py ...sss.Fatal Python error: Fatal Python error: Illegal instructionIllegal instruction
# File "/nix/store/wiiccrs0vd1qbh4j6ki9p40xmamsjix3-python3.12-pylance-0.17.0/lib/python3.12/site-packages/lance/indices.py", line 237 in train_ivf
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;
};
}
+1 -3
View File
@@ -10729,9 +10729,7 @@ self: super: with self; {
pykrakenapi = callPackage ../development/python-modules/pykrakenapi { };
pylance = callPackage ../development/python-modules/pylance {
inherit (pkgs) protobuf;
};
pylance = callPackage ../development/python-modules/pylance { };
pyldavis = callPackage ../development/python-modules/pyldavis { };