git: 66167757c55b - main - devel/py-pygls: Add py-pygls 1.3.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 14 Oct 2024 05:27:10 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66167757c55bb118171965e0342102b64599eee6

commit 66167757c55bb118171965e0342102b64599eee6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-10-14 04:45:11 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-10-14 04:45:11 +0000

    devel/py-pygls: Add py-pygls 1.3.1
    
    pygls (pronounced like "pie glass") is a pythonic generic implementation of the
    Language Server Protocol for use as a foundation for writing your own Language
    Servers in just a few lines of code.
---
 devel/Makefile                            |  1 +
 devel/py-pygls/Makefile                   | 24 ++++++++++++++++++++++++
 devel/py-pygls/distinfo                   |  3 +++
 devel/py-pygls/files/patch-pyproject.toml | 11 +++++++++++
 devel/py-pygls/pkg-descr                  |  3 +++
 5 files changed, 42 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 2356e5c776c7..af3a5b4731b4 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5536,6 +5536,7 @@
     SUBDIR += py-pyformance
     SUBDIR += py-pygdbmi
     SUBDIR += py-pygit2
+    SUBDIR += py-pygls
     SUBDIR += py-pygpx
     SUBDIR += py-pyhashxx
     SUBDIR += py-pyhcl
diff --git a/devel/py-pygls/Makefile b/devel/py-pygls/Makefile
new file mode 100644
index 000000000000..efb9d72b0b5e
--- /dev/null
+++ b/devel/py-pygls/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pygls
+PORTVERSION=	1.3.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Pythonic generic language server (pronounced like 'pie glass')
+WWW=		https://pygls.readthedocs.io/en/latest/ \
+		https://github.com/openlawlibrary/pygls
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cattrs>=23.1.2:devel/py-cattrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lsprotocol>=2023.0.1:devel/py-lsprotocol@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pygls/distinfo b/devel/py-pygls/distinfo
new file mode 100644
index 000000000000..4f6d4a5c4fbc
--- /dev/null
+++ b/devel/py-pygls/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1728632226
+SHA256 (pygls-1.3.1.tar.gz) = 140edceefa0da0e9b3c533547c892a42a7d2fd9217ae848c330c53d266a55018
+SIZE (pygls-1.3.1.tar.gz) = 45527
diff --git a/devel/py-pygls/files/patch-pyproject.toml b/devel/py-pygls/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b1de9bdeb3b1
--- /dev/null
+++ b/devel/py-pygls/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2024-03-26 18:43:55 UTC
++++ pyproject.toml
+@@ -20,7 +20,7 @@ cattrs = ">=23.1.2"
+ [tool.poetry.dependencies]
+ python = ">=3.8"
+ cattrs = ">=23.1.2"
+-lsprotocol = "2023.0.1"
++lsprotocol = ">=2023.0.1"
+ websockets = { version = ">=11.0.3", optional = true }
+ 
+ [tool.poetry.extras]
diff --git a/devel/py-pygls/pkg-descr b/devel/py-pygls/pkg-descr
new file mode 100644
index 000000000000..3f0deca0f154
--- /dev/null
+++ b/devel/py-pygls/pkg-descr
@@ -0,0 +1,3 @@
+pygls (pronounced like "pie glass") is a pythonic generic implementation of the
+Language Server Protocol for use as a foundation for writing your own Language
+Servers in just a few lines of code.