diff --git a/pkgs/development/python-modules/jedi/default.nix b/pkgs/development/python-modules/jedi/default.nix index 658a63c8ed85..048f45f75c29 100644 --- a/pkgs/development/python-modules/jedi/default.nix +++ b/pkgs/development/python-modules/jedi/default.nix @@ -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 = [ ]; }; -} +})