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

python3Packages.pylance: 1.0.0 -> 1.0.1 (#475433)

parents fe575ad7 0ec8cef6
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildPythonPackage,
  fetchFromGitHub,
  rustPlatform,
  pythonAtLeast,

  # buildInputs
  openssl,
@@ -105,7 +106,13 @@ buildPythonPackage rec {

  disabledTestMarks = [ "slow" ];

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
  disabledTests =
    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"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # Flaky (even when the sandbox is disabled):
      # 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'
+9 −3
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildPythonPackage,
  fetchFromGitHub,
  rustPlatform,
  pythonAtLeast,

  # nativeBuildInputs
  pkg-config,
@@ -33,14 +34,14 @@

buildPythonPackage rec {
  pname = "pylance";
  version = "1.0.0";
  version = "1.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lancedb";
    repo = "lance";
    tag = "v${version}";
    hash = "sha256-SPvJHa8oVgydWSvTR7RWF3ojKmz4BOJgo1fiwjCtYLU=";
    hash = "sha256-S/zVpsfoQG9NYnJyAJm+a0LllVE/lfaCua+NA9DGIsw=";
  };

  sourceRoot = "${src.name}/python";
@@ -52,7 +53,7 @@ buildPythonPackage rec {
      src
      sourceRoot
      ;
    hash = "sha256-dPfj8Zd5+pW4Xe6IFaOcvcJdzcuC6qURSNJRcbceoHg=";
    hash = "sha256-5ngkyjzxQ2NVxst3t7U18hdZ5zHNo0gjv0dif9HlyhU=";
  };

  nativeBuildInputs = [
@@ -101,6 +102,11 @@ buildPythonPackage rec {
    cd python/tests
  '';

  pytestFlags = lib.optionals (pythonAtLeast "3.14") [
    # DeprecationWarning: '_UnionGenericAlias' is deprecated and slated for removal in Python 3.17
    "-Wignore::DeprecationWarning"
  ];

  disabledTests = [
    # Hangs indefinitely
    "test_all_permutations"