Skip to content

Commit d94ae68

Browse files
authored
Merge pull request #283426 from fabaff/lsprotocol-bump
python311Packages.pygls: relax lsprotocol
2 parents 0e14832 + 8678862 commit d94ae68

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

pkgs/development/python-modules/lsprotocol/default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
buildPythonPackage rec {
1616
pname = "lsprotocol";
1717
version = "2023.0.1";
18-
format = "pyproject";
18+
pyproject = true;
1919

2020
disabled = pythonOlder "3.7";
2121

2222
src = fetchFromGitHub {
2323
owner = "microsoft";
24-
repo = pname;
24+
repo = "lsprotocol";
2525
rev = "refs/tags/${version}";
2626
hash = "sha256-PHjLKazMaT6W4Lve1xNxm6hEwqE3Lr2m5L7Q03fqb68=";
2727
};
@@ -70,6 +70,7 @@ buildPythonPackage rec {
7070
meta = with lib; {
7171
description = "Python implementation of the Language Server Protocol";
7272
homepage = "https://github.com/microsoft/lsprotocol";
73+
changelog = "https://github.com/microsoft/lsprotocol/releases/tag/${version}";
7374
license = licenses.mit;
7475
maintainers = with maintainers; [ doronbehar fab ];
7576
};

pkgs/development/python-modules/pygls/default.nix

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{ lib
22
, stdenv
33
, buildPythonPackage
4-
, pythonOlder
54
, fetchFromGitHub
6-
, poetry-core
75
, lsprotocol
8-
, typeguard
6+
, poetry-core
97
, pytest-asyncio
108
, pytestCheckHook
9+
, pythonOlder
10+
, pythonRelaxDepsHook
11+
, typeguard
12+
, websockets
1113
}:
1214

1315
buildPythonPackage rec {
1416
pname = "pygls";
1517
version = "1.2.1";
16-
format = "pyproject";
18+
pyproject = true;
1719

1820
disabled = pythonOlder "3.7";
1921

@@ -24,15 +26,27 @@ buildPythonPackage rec {
2426
hash = "sha256-ARez9fs50kScfMp/W/aFIOcJonpFrcfyrzJuVwou7fk=";
2527
};
2628

29+
pythonRelaxDeps = [
30+
# https://github.com/openlawlibrary/pygls/pull/432
31+
"lsprotocol"
32+
];
33+
2734
nativeBuildInputs = [
2835
poetry-core
36+
pythonRelaxDepsHook
2937
];
3038

3139
propagatedBuildInputs = [
3240
lsprotocol
3341
typeguard
3442
];
3543

44+
passthru.optional-dependencies = {
45+
ws = [
46+
websockets
47+
];
48+
};
49+
3650
nativeCheckInputs = [
3751
pytest-asyncio
3852
pytestCheckHook
@@ -46,12 +60,14 @@ buildPythonPackage rec {
4660
ulimit -n 1024
4761
'';
4862

49-
pythonImportsCheck = [ "pygls" ];
63+
pythonImportsCheck = [
64+
"pygls"
65+
];
5066

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

0 commit comments

Comments
 (0)