From 2dd0ac538f4031d21f9c81ff9bc3b42cb2c0f93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Daniel=20Colmenares=20Oviedo?= Date: Tue, 3 Jun 2025 13:25:02 -0400 Subject: [PATCH] www/py-klein: New port: Micro-framework for developing production-ready web services Klein is a micro-framework for developing production-ready web services with Python. It is 'micro' in that it has an incredibly small API similar to Bottle and Flask. It is not 'micro' in that it depends on things outside the standard library. This is primarily because it is built on widely used and well tested components like Werkzeug and Twisted. PR: 287125 Approved by: acm (mentor) --- www/Makefile | 1 + www/py-klein/Makefile | 31 +++++++++++++++++++++++++++++++ www/py-klein/distinfo | 3 +++ www/py-klein/pkg-descr | 6 ++++++ 4 files changed, 41 insertions(+) create mode 100644 www/py-klein/Makefile create mode 100644 www/py-klein/distinfo create mode 100644 www/py-klein/pkg-descr diff --git a/www/Makefile b/www/Makefile index 1c71665e6786..d25b1f546142 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1798,6 +1798,7 @@ SUBDIR += py-jh2 SUBDIR += py-jonpy SUBDIR += py-kiss-headers + SUBDIR += py-klein SUBDIR += py-laces SUBDIR += py-legacy-cgi SUBDIR += py-lektor diff --git a/www/py-klein/Makefile b/www/py-klein/Makefile new file mode 100644 index 000000000000..d06172ea88f3 --- /dev/null +++ b/www/py-klein/Makefile @@ -0,0 +1,31 @@ +PORTNAME= klein +DISTVERSION= 24.8.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dtxdf@FreeBSD.org +COMMENT= Micro-framework for developing production-ready web services +WWW= https://pypi.org/project/${PORTNAME} \ + https://github.com/twisted/${PORTNAME} + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hyperlink>=0:www/py-hyperlink@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Tubes>=0:textproc/py-Tubes@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}werkzeug>=0:www/py-werkzeug@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}zope.interface>=0:devel/py-zope.interface@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include diff --git a/www/py-klein/distinfo b/www/py-klein/distinfo new file mode 100644 index 000000000000..7660c1bc4359 --- /dev/null +++ b/www/py-klein/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1748373054 +SHA256 (klein-24.8.0.tar.gz) = 1eef4f583c4f8ef4fc57d8b57753fe6e8935501eb36497bb574064e80e3d0b15 +SIZE (klein-24.8.0.tar.gz) = 104368 diff --git a/www/py-klein/pkg-descr b/www/py-klein/pkg-descr new file mode 100644 index 000000000000..d50c3dfe9ab4 --- /dev/null +++ b/www/py-klein/pkg-descr @@ -0,0 +1,6 @@ +Klein is a micro-framework for developing production-ready web +services with Python. It is 'micro' in that it has an incredibly +small API similar to Bottle and Flask. It is not 'micro' in that +it depends on things outside the standard library. This is primarily +because it is built on widely used and well tested components like +Werkzeug and Twisted.