python3Packages.pylance: 0.18.2 -> 0.22.0, python3Packages.lancedb: 0.14.0 -> 0.18.0 (#373780)
This commit is contained in:
+1405
-736
File diff suppressed because it is too large
Load Diff
@@ -24,19 +24,20 @@
|
||||
polars,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
duckdb,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lancedb";
|
||||
version = "0.14.0";
|
||||
version = "0.18.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lancedb";
|
||||
repo = "lancedb";
|
||||
tag = "python-v${version}";
|
||||
hash = "sha256-lw2tZ26Py6JUxuetaokJKnxOv/WoLK4spxssLKxvxJA=";
|
||||
hash = "sha256-URgJFSrCccp9DBdW2VQgft1GZHu48pb8RrLHmBBow5Q=";
|
||||
};
|
||||
|
||||
buildAndTestSubdir = "python";
|
||||
@@ -86,6 +87,7 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
aiohttp
|
||||
duckdb
|
||||
pandas
|
||||
polars
|
||||
pytest-asyncio
|
||||
@@ -106,6 +108,9 @@ buildPythonPackage rec {
|
||||
# polars.exceptions.ComputeError: TypeError: _scan_pyarrow_dataset_impl() got multiple values for argument 'batch_size'
|
||||
# https://github.com/lancedb/lancedb/issues/1539
|
||||
"test_polars"
|
||||
|
||||
# Requires tantivy which is not packaged in nixpkgs
|
||||
"test_fts_native"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# fail with darwin sandbox
|
||||
|
||||
-6093
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,7 @@
|
||||
|
||||
# buildInputs
|
||||
libiconv,
|
||||
openssl,
|
||||
protobuf,
|
||||
darwin,
|
||||
|
||||
@@ -35,23 +36,27 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylance";
|
||||
version = "0.18.2";
|
||||
version = "0.22.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lancedb";
|
||||
repo = "lance";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-CIIZbeRrraTqWronkspDpBVP/Z4JVoaiS5iBIXfsZGg=";
|
||||
hash = "sha256-UOrkVHgTX1JK6chYJ6I+VJUquwsKLnOI5solS9W21HY=";
|
||||
};
|
||||
|
||||
buildAndTestSubdir = "python";
|
||||
sourceRoot = "${src.name}/python";
|
||||
|
||||
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit
|
||||
pname
|
||||
version
|
||||
src
|
||||
sourceRoot
|
||||
;
|
||||
hash = "sha256-WzgOQgD1dbpi/WR6LPbPVaYv11DF/sjeSUPVLVCchzI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
@@ -59,11 +64,15 @@ buildPythonPackage rec {
|
||||
rustPlatform.cargoSetupHook
|
||||
];
|
||||
|
||||
build-system = [ rustPlatform.maturinBuildHook ];
|
||||
build-system = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
libiconv
|
||||
openssl
|
||||
protobuf
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin (
|
||||
@@ -98,7 +107,7 @@ buildPythonPackage rec {
|
||||
] ++ optional-dependencies.torch;
|
||||
|
||||
preCheck = ''
|
||||
cd python/python/tests
|
||||
cd python/tests
|
||||
'';
|
||||
|
||||
disabledTests =
|
||||
@@ -115,15 +124,12 @@ buildPythonPackage rec {
|
||||
++ [
|
||||
# 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 {
|
||||
extraArgs = [
|
||||
"--generate-lockfile"
|
||||
"--lockfile-metadata-path"
|
||||
"python"
|
||||
];
|
||||
};
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Python wrapper for Lance columnar format";
|
||||
|
||||
Reference in New Issue
Block a user