mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00
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:
commit
cc76f5abc4
1270
pkgs/development/python-modules/lancedb/Cargo.lock
generated
1270
pkgs/development/python-modules/lancedb/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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";
|
||||
|
996
pkgs/development/python-modules/pylance/Cargo.lock
generated
996
pkgs/development/python-modules/pylance/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user