Skip to content

Commit 3700dad

Browse files
committed
python311Packages.pygls: add optional-dependencies
1 parent 5169dc5 commit 3700dad

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
, typeguard
99
, pytest-asyncio
1010
, pytestCheckHook
11+
, websockets
1112
}:
1213

1314
buildPythonPackage rec {
1415
pname = "pygls";
1516
version = "1.2.1";
16-
format = "pyproject";
17+
pyproject = true;
1718

1819
disabled = pythonOlder "3.7";
1920

@@ -33,6 +34,12 @@ buildPythonPackage rec {
3334
typeguard
3435
];
3536

37+
passthru.optional-dependencies = {
38+
ws = [
39+
websockets
40+
];
41+
};
42+
3643
nativeCheckInputs = [
3744
pytest-asyncio
3845
pytestCheckHook
@@ -46,12 +53,14 @@ buildPythonPackage rec {
4653
ulimit -n 1024
4754
'';
4855

49-
pythonImportsCheck = [ "pygls" ];
56+
pythonImportsCheck = [
57+
"pygls"
58+
];
5059

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

0 commit comments

Comments
 (0)