Something went wrong. Try again.
lol
Something went wrong. Try again.
2.4 kB · 108 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies lance-namespace-urllib3-client, pyarrow, # pylance, typing-extensions,
# optional-dependencies # dir opendal, # glue boto3, botocore, # hive2 hive-metastore-client, thrift,
# tests pylance, pytestCheckHook, lance-namespace,}:
buildPythonPackage (finalAttrs: { pname = "lance-namespace"; version = "0.6.1"; pyproject = true;
src = fetchFromGitHub { owner = "lancedb"; repo = "lance-namespace"; tag = "v${finalAttrs.version}"; hash = "sha256-eN50KkYOOs209oB5O7AOMXuYpOjXWU6mccRGPgM/4DQ="; };
sourceRoot = "${finalAttrs.src.name}/python/lance_namespace";
build-system = [ hatchling ];
dependencies = [ lance-namespace-urllib3-client typing-extensions # pylance pyarrow ];
optional-dependencies = { dir = [ opendal ]; glue = [ boto3 botocore ]; hive2 = [ hive-metastore-client thrift ]; };
pythonImportsCheck = [ "lance_namespace" ];
nativeCheckInputs = [ pylance pytestCheckHook ] ++ lib.concatAttrValues finalAttrs.optional-dependencies;
# Tests require pylance, which is a circular dependency doCheck = false;
passthru.tests.pytest = lance-namespace.overridePythonAttrs { disabledTests = [ # AttributeError: 'function' object has no attribute 'write_dataset' "test_create_table" "test_describe_table" "test_drop_table" "test_list_tables"
# RuntimeError: Failed to list tables: Operator.list() got an unexpected keyword argument 'recursive' "test_create_empty_table" "test_empty_list_tables"
# lance_namespace.unity.LanceNamespaceException: Failed to drop namespace: BehaviorEnum "test_drop_namespace"
# pydantic_core._pydantic_core.ValidationError: 1 validation error for ListNamespacesResponse namespaces "test_list_namespaces_schemas" "test_list_namespaces_top_level" ];
doCheck = true; };
meta = { description = "Open specification on top of the storage-based Lance table and file format to standardize access to a collection of Lance tables"; homepage = "https://github.com/lancedb/lance-namespace/tree/main/python/lance_namespace"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})