Unverified Commit d94ae680 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #283426 from fabaff/lsprotocol-bump

python311Packages.pygls: relax lsprotocol
parents 0e148322 86788629
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -15,13 +15,13 @@
buildPythonPackage rec {
  pname = "lsprotocol";
  version = "2023.0.1";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "microsoft";
    repo = pname;
    repo = "lsprotocol";
    rev = "refs/tags/${version}";
    hash = "sha256-PHjLKazMaT6W4Lve1xNxm6hEwqE3Lr2m5L7Q03fqb68=";
  };
@@ -70,6 +70,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}";
    license = licenses.mit;
    maintainers = with maintainers; [ doronbehar fab ];
  };
+22 −6
Original line number Diff line number Diff line
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, lsprotocol
, typeguard
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, typeguard
, websockets
}:

buildPythonPackage rec {
  pname = "pygls";
  version = "1.2.1";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -24,8 +26,14 @@ buildPythonPackage rec {
    hash = "sha256-ARez9fs50kScfMp/W/aFIOcJonpFrcfyrzJuVwou7fk=";
  };

  pythonRelaxDeps = [
    # https://github.com/openlawlibrary/pygls/pull/432
    "lsprotocol"
  ];

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
@@ -33,6 +41,12 @@ buildPythonPackage rec {
    typeguard
  ];

  passthru.optional-dependencies = {
    ws = [
      websockets
    ];
  };

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
@@ -46,12 +60,14 @@ buildPythonPackage rec {
    ulimit -n 1024
  '';

  pythonImportsCheck = [ "pygls" ];
  pythonImportsCheck = [
    "pygls"
  ];

  meta = with lib; {
    description = "Pythonic generic implementation of the Language Server Protocol";
    homepage = "https://github.com/openlawlibrary/pygls";
    changelog = "https://github.com/openlawlibrary/pygls/blob/${src.rev}/CHANGELOG.md";
    changelog = "https://github.com/openlawlibrary/pygls/blob/${version}/CHANGELOG.md";
    license = licenses.asl20;
    maintainers = with maintainers; [ kira-bruneau ];
  };