From afec46afffb5a8b12ddc451e951d2a69d24a8d3f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 5 Aug 2025 04:41:04 +0200 Subject: [PATCH] python3Packages.lsprotocol: 2023.0.1 -> 2025.0.0 https://github.com/microsoft/lsprotocol/releases/tag/2025.0.0 This commit was automatically generated using update-python-libraries. --- .../python-modules/lsprotocol/default.nix | 37 ++++++++----------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/pkgs/development/python-modules/lsprotocol/default.nix b/pkgs/development/python-modules/lsprotocol/default.nix index 06e85fae1e73..fdb10e5dd3c5 100644 --- a/pkgs/development/python-modules/lsprotocol/default.nix +++ b/pkgs/development/python-modules/lsprotocol/default.nix @@ -7,15 +7,14 @@ flit-core, importlib-resources, jsonschema, - nox, pyhamcrest, - pytest, + pytestCheckHook, pythonOlder, }: buildPythonPackage rec { pname = "lsprotocol"; - version = "2023.0.1"; + version = "2025.0.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -24,20 +23,23 @@ buildPythonPackage rec { owner = "microsoft"; repo = "lsprotocol"; tag = version; - hash = "sha256-PHjLKazMaT6W4Lve1xNxm6hEwqE3Lr2m5L7Q03fqb68="; + hash = "sha256-DrWXHMgDZSQQ6vsmorThMrUTX3UQU+DajSEOdxoXrFQ="; }; - nativeBuildInputs = [ + postPatch = '' + pushd packages/python + ''; + + build-system = [ flit-core - nox ]; - propagatedBuildInputs = [ + dependencies = [ attrs cattrs ]; - nativeCheckInputs = [ pytest ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ importlib-resources @@ -45,21 +47,12 @@ buildPythonPackage rec { pyhamcrest ]; - preBuild = '' - cd packages/python - ''; + disabledTests = [ + "test_notebook_sync_options" + ]; preCheck = '' - cd ../../ - ''; - - checkPhase = '' - runHook preCheck - - sed -i "/^ _install_requirements/d" noxfile.py - nox --session tests - - runHook postCheck + popd ''; pythonImportsCheck = [ "lsprotocol" ]; @@ -67,7 +60,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python implementation of the Language Server Protocol"; homepage = "https://github.com/microsoft/lsprotocol"; - changelog = "https://github.com/microsoft/lsprotocol/releases/tag/${version}"; + changelog = "https://github.com/microsoft/lsprotocol/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ doronbehar