python3Packages.parso: 0.8.5 -> 0.8.7; python3Packages.jedi: 0.19.2 -> 0.20.0 (#515665)

This commit is contained in:
Martin Weinelt
2026-05-02 00:21:37 +00:00
committed by GitHub
2 changed files with 25 additions and 39 deletions
@@ -2,7 +2,6 @@
lib,
stdenv,
buildPythonPackage,
pythonAtLeast,
fetchFromGitHub,
# build-system
@@ -16,16 +15,16 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "jedi";
version = "0.19.2";
version = "0.20.0";
pyproject = true;
src = fetchFromGitHub {
owner = "davidhalter";
repo = "jedi";
rev = "v${version}";
hash = "sha256-2nDQJS6LIaq91PG3Av85OMFfs1ZwId00K/kvog3PGXE=";
tag = "v${finalAttrs.version}";
hash = "sha256-D0Zy8HJYq5l8Wp1M+J7p8Z+EBY/R5tYFa2uMYiqLIT8=";
fetchSubmodules = true;
};
@@ -42,38 +41,25 @@ buildPythonPackage rec {
export HOME=$TMPDIR
'';
disabledTests = [
# sensitive to platform, causes false negatives on darwin
"test_import"
]
++ lib.optionals (stdenv.targetPlatform.useLLVM or false) [
# InvalidPythonEnvironment: The python binary is potentially unsafe.
"test_create_environment_executable"
# AssertionError: assert ['', '.1000000000000001'] == ['', '.1']
"test_dict_keys_completions"
# AssertionError: assert ['', '.1000000000000001'] == ['', '.1']
"test_dict_completion"
];
disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [
# Jedi.api.environment.InvalidPythonEnvironment: The python binary is potentially unsafe
"test/test_inference/test_sys_path.py::test_venv_and_pths"
"test/test_api/test_environment.py::test_create_environment_venv_path"
"test/test_api/test_environment.py::test_create_environment_executable"
# can't find system env nor venv
"test/test_api/test_environment.py::test_find_system_environments"
"test/test_api/test_environment.py::test_scanning_venvs"
# https://github.com/davidhalter/jedi/issues/2064
"test/test_api/test_interpreter.py::test_string_annotation"
# type repr mismatch: Union[Type, int] vs Type | int
"test/test_inference/test_mixed.py::test_compiled_signature_annotation_string"
];
disabledTests =
lib.optionals stdenv.hostPlatform.isDarwin [
# sensitive to platform, causes false negatives on darwin
"test_import"
]
++ lib.optionals stdenv.targetPlatform.useLLVM [
# InvalidPythonEnvironment: The python binary is potentially unsafe.
"test_create_environment_executable"
# AssertionError: assert ['', '.1000000000000001'] == ['', '.1']
"test_dict_keys_completions"
# AssertionError: assert ['', '.1000000000000001'] == ['', '.1']
"test_dict_completion"
];
meta = {
changelog = "https://github.com/davidhalter/jedi/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
description = "Autocompletion tool for Python that can be used for text editors";
homepage = "https://github.com/davidhalter/jedi";
changelog = "https://github.com/davidhalter/jedi/blob/${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}
})
@@ -6,16 +6,16 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "parso";
version = "0.8.5";
version = "0.8.7";
pyproject = true;
src = fetchFromGitHub {
owner = "davidhalter";
repo = "parso";
tag = "v${version}";
hash = "sha256-faSXCrOkybLr0bboF/8rPV/Humq8s158A3UOpdlYi0I=";
tag = "v${finalAttrs.version}";
hash = "sha256-vpWoxLIvNt4QQh/r57iAvX3Zebet3mihb5efOWLhYI8=";
};
build-system = [ setuptools ];
@@ -25,7 +25,7 @@ buildPythonPackage rec {
meta = {
description = "Python Parser";
homepage = "https://parso.readthedocs.io/en/latest/";
changelog = "https://github.com/davidhalter/parso/blob/${src.tag}/CHANGELOG.rst";
changelog = "https://github.com/davidhalter/parso/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
license = lib.licenses.mit;
};
}
})