View | Details | Raw Unified | Return to bug 282460 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/py-nicegui-nogui/Makefile (+13 lines)
Added Link Here
1
PORTNAME=	nicegui
2
PKGNAMESUFFIX=	-nogui
3
4
MAINTAINER=	DtxdF@disroot.org
5
COMMENT=	Create web-based user interfaces with Python (nogui)
6
7
CONFLICTS_INSTALL=	www/py-nicegui
8
9
MASTERDIR=	${.CURDIR}/../py-nicegui
10
11
OPTIONS_DEFAULT=	PLOTLY MATPLOTLIB
12
13
.include "${MASTERDIR}/Makefile"
(-)b/www/py-nicegui/Makefile (+60 lines)
Added Link Here
1
PORTNAME=	nicegui
2
DISTVERSION=	2.5.0
3
CATEGORIES=	www graphics python
4
MASTER_SITES=	PYPI
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
7
MAINTAINER=	DtxdF@disroot.org
8
COMMENT?=	Create web-based user interfaces with Python
9
WWW=		https://nicegui.io/
10
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}markdown2>=0:textproc/py-markdown2@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}uvicorn>=0:www/py-uvicorn@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}fastapi>=0:www/py-fastapi@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}python-socketio>=0:devel/py-python-socketio@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}vbuild>=0:textproc/py-vbuild@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}watchfiles>=0:devel/py-watchfiles@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}python-multipart>=0:www/py-python-multipart@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}orjson>=0:devel/py-orjson@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}itsdangerous>=0:security/py-itsdangerous@${PY_FLAVOR} \
28
		${PYTHON_PKGNAMEPREFIX}aiofiles>=0:devel/py-aiofiles@${PY_FLAVOR} \
29
		${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR} \
30
		${PYTHON_PKGNAMEPREFIX}ifaddr>=0:net/py-ifaddr@${PY_FLAVOR} \
31
		${PYTHON_PKGNAMEPREFIX}aiohttp>=0:www/py-aiohttp@${PY_FLAVOR} \
32
		${PYTHON_PKGNAMEPREFIX}libsass>=0:www/py-libsass@${PY_FLAVOR} \
33
		${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR} \
34
		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
35
		${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR} \
36
		${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR}
37
38
USES=		python shebangfix
39
USE_PYTHON=	autoplist pep517
40
41
CONFLICTS_INSTALL?=	www/py-nicegui-nogui
42
43
SHEBANG_FILES=	nicegui/scripts/pack.py
44
45
NO_ARCH=	yes
46
47
OPTIONS_DEFINE=		PYWEBVIEW PLOTLY MATPLOTLIB
48
OPTIONS_DEFAULT?=	PYWEBVIEW PLOTLY MATPLOTLIB
49
50
PYWEBVIEW_FLAVOR?=	qt
51
52
MATPLOTLIB_DESC=	Enable support for matplotlib
53
PLOTLY_DESC=		Enable support for plotly
54
PYWEBVIEW_DESC=		Enable support for native mode
55
56
MATPLOTLIB_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR}
57
PLOTLY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}plotly>=0:graphics/py-plotly@${PY_FLAVOR}
58
PYWEBVIEW_RUN_DEPENDS=	pywebview-${PYWEBVIEW_FLAVOR}>=0:www/pywebview@${PYWEBVIEW_FLAVOR}
59
60
.include <bsd.port.mk>
(-)b/www/py-nicegui/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1729887287
2
SHA256 (nicegui-2.5.0.tar.gz) = e848e822dbf9be2c7cf50d27fbb180c096b135e6e1a817b30dd4a1b6aaac457c
3
SIZE (nicegui-2.5.0.tar.gz) = 16051000
(-)b/www/py-nicegui/files/patch-pyproject.toml (+11 lines)
Added Link Here
1
--- pyproject.toml.orig	2024-10-25 21:10:42 UTC
2
+++ pyproject.toml
3
@@ -69,7 +69,7 @@ requires = [
4
 
5
 [build-system]
6
 requires = [
7
-    "setuptools>=30.3.0,<50",
8
+    "setuptools",
9
     "poetry-core>=1.0.0"
10
 ]
11
 build-backend = "poetry.core.masonry.api"
(-)b/www/py-nicegui/pkg-descr (-1 / +3 lines)
Added Link Here
0
- 
1
NiceGUI is an easy-to-use, Python-base UI framework, which shows
2
up in your web browser. You can create buttons, dialogs, Markdown,
3
3D scenes, plots and much more.

Return to bug 282460