mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
python3Packages.pylance: 1.0.0 -> 1.0.1 (#475433)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
pythonAtLeast,
|
||||
|
||||
# buildInputs
|
||||
openssl,
|
||||
@@ -105,12 +106,18 @@ buildPythonPackage rec {
|
||||
|
||||
disabledTestMarks = [ "slow" ];
|
||||
|
||||
disabledTests = 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'
|
||||
"test_create_index_from_table"
|
||||
];
|
||||
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'
|
||||
"test_create_index_from_table"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# touch the network
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user