Merge pull request #336443 from natsukium/lancedb/update

python312Packages.lancedb: 0.11.0 -> 0.12.0; python312Packages.pylance: 0.15.0 -> 0.16.0
This commit is contained in:
OTABI Tomoya 2024-08-23 09:07:28 +09:00 committed by GitHub
commit cc76f5abc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1010 additions and 1295 deletions

File diff suppressed because it is too large Load Diff

View File

@ -23,18 +23,19 @@
polars,
pytest-asyncio,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "lancedb";
version = "0.11.0";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "lancedb";
repo = "lancedb";
rev = "refs/tags/python-v${version}";
hash = "sha256-JT6HNuMjFO/q+6LlYRT+vKa0aV9DOC9b21ulHXq1gjY=";
hash = "sha256-LDxq49aFxUmRAw8tQvFxnExtU0IKKqMbxIBuY95cBHU=";
};
# ratelimiter only support up to python310 and it has been removed from nixpkgs
@ -110,6 +111,16 @@ buildPythonPackage rec {
"test_s3.py"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"python-v(.*)"
"--generate-lockfile"
"--lockfile-metadata-path"
"python"
];
};
meta = {
description = "Developer-friendly, serverless vector database for AI applications";
homepage = "https://github.com/lancedb/lancedb";

File diff suppressed because it is too large Load Diff

View File

@ -15,22 +15,24 @@
pillow,
polars,
pytestCheckHook,
torch,
tqdm,
nix-update-script,
}:
buildPythonPackage rec {
pname = "pylance";
version = "0.15.0";
version = "0.16.0";
pyproject = true;
src = fetchFromGitHub {
owner = "lancedb";
repo = "lance";
rev = "refs/tags/v${version}";
hash = "sha256-zJ6zyS9DNhlJ1wbXHZRtNMDytF/Beh9DDHKB8S9HFwk=";
hash = "sha256-bB+6q3kkSxY8i5xf4wumREHizUGWWOZ8Tr5Gt10CVAs=";
};
sourceRoot = "${src.name}/python";
buildAndTestSubdir = "python";
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
@ -65,6 +67,10 @@ buildPythonPackage rec {
pyarrow
];
optional-dependencies = {
torch = [ torch ];
};
pythonImportsCheck = [ "lance" ];
nativeCheckInputs = [
@ -74,10 +80,10 @@ buildPythonPackage rec {
polars
pytestCheckHook
tqdm
];
] ++ optional-dependencies.torch;
preCheck = ''
cd python/tests
cd python/python/tests
'';
disabledTests = [
@ -86,6 +92,14 @@ buildPythonPackage rec {
"test_simple_predicates"
];
passthru.updateScript = nix-update-script {
extraArgs = [
"--generate-lockfile"
"--lockfile-metadata-path"
"python"
];
};
meta = {
description = "Python wrapper for Lance columnar format";
homepage = "https://github.com/lancedb/lance";