Unverified Commit 542def18 authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.pylance: 1.0.4 -> 2.0.0; python3Packages.lancedb: 0.26.1 -> 0.27.1 (#487441)

parents 038e18f1 59dab276
Loading
Loading
Loading
Loading
+23 −15
Original line number Diff line number Diff line
@@ -42,21 +42,21 @@

buildPythonPackage (finalAttrs: {
  pname = "lancedb";
  version = "0.26.1";
  version = "0.27.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lancedb";
    repo = "lancedb";
    tag = "python-v${finalAttrs.version}";
    hash = "sha256-yx4cwO7qRH9/1rW0UFz17HkvJ8utJynYoAHnN+wPpKw=";
    hash = "sha256-pWrwv3VtfkfOKnkiiu26yRDrDrsNxb+0r/kcNHwzmhU=";
  };

  buildAndTestSubdir = "python";

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit (finalAttrs) pname version src;
    hash = "sha256-ymoA/KKL7oLgp5u/NcXxbYfOueiKH+bpLxLcO+mn0Eo=";
    hash = "sha256-U1Od4lhaaGdYF3TISfRWY7sRmyyniZqLofBCnYAo1ew=";
  };

  build-system = [ rustPlatform.maturinBuildHook ];
@@ -106,8 +106,12 @@ buildPythonPackage (finalAttrs: {

  disabledTestMarks = [ "slow" ];

  disabledTests =
    lib.optionals (pythonAtLeast "3.14") [
  disabledTests = [
    # Requires internet access
    # RuntimeError: lance error: LanceError(IO): Generic S3 error
    "test_bucket_without_dots_passes"
  ]
  ++ lib.optionals (pythonAtLeast "3.14") [
    # TypeError: Converting Pydantic type to Arrow Type: unsupported type
    # <class 'test_pydantic.test_optional_nested_model.<locals>.WALocation'>.
    "test_optional_nested_model"
@@ -117,6 +121,10 @@ buildPythonPackage (finalAttrs: {
    # FileNotFoundError: [Errno 2] Cannot delete directory '/nix/var/nix/builds/nix-41395-654732360/.../test.lance/_indices/fts':
    # Cannot get information for path '/nix/var/nix/builds/nix-41395-654732360/.../test.lance/_indices/fts/.tmppyKXfw'
    "test_create_index_from_table"
  ]
  ++ lib.optionals ((pythonAtLeast "3.14") && stdenv.hostPlatform.isDarwin) [
    # Failed: DID NOT RAISE <class 'Exception'>
    "test_merge_insert"
  ];

  disabledTestPaths = [
+3 −3
Original line number Diff line number Diff line
@@ -34,14 +34,14 @@

buildPythonPackage (finalAttrs: {
  pname = "pylance";
  version = "1.0.4";
  version = "2.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lancedb";
    repo = "lance";
    tag = "v${finalAttrs.version}";
    hash = "sha256-SAV4mowG8wcK22ZXJUT9UffKz8lcICipSDC5FR0Z2lY=";
    hash = "sha256-VxhRdyPhVVRRiYu2h7ospxLSpXCz0a6LgjJCGcqJVcU=";
  };

  sourceRoot = "${finalAttrs.src.name}/python";
@@ -53,7 +53,7 @@ buildPythonPackage (finalAttrs: {
      src
      sourceRoot
      ;
    hash = "sha256-qDfN4iH/FSqklUC58O4ot7SxBRSKWebYkh1X1T5JXUs=";
    hash = "sha256-toIyApf/v0h45rZjfJRAStU9TZGmB+cCChObzjVr1Hs=";
  };

  nativeBuildInputs = [