git: 44f5da4fe9e1 - main - devel/py-types-Flask-Cors: New port: Typing stubs for Flask-Cors
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Mar 2026 04:20:07 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=44f5da4fe9e127049887e886cda8ab0f56a5c1f6
commit 44f5da4fe9e127049887e886cda8ab0f56a5c1f6
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-03-04 01:28:42 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-03-04 04:20:02 +0000
devel/py-types-Flask-Cors: New port: Typing stubs for Flask-Cors
---
devel/Makefile | 1 +
devel/py-types-Flask-Cors/Makefile | 24 ++++++++++++++++++++++
devel/py-types-Flask-Cors/distinfo | 3 +++
.../py-types-Flask-Cors/files/patch-pyproject.toml | 23 +++++++++++++++++++++
devel/py-types-Flask-Cors/files/patch-setup.py | 19 +++++++++++++++++
devel/py-types-Flask-Cors/pkg-descr | 4 ++++
6 files changed, 74 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 07d693608c49..01f20c96b3e3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6186,6 +6186,7 @@
SUBDIR += py-typeguard
SUBDIR += py-typer
SUBDIR += py-typer-slim
+ SUBDIR += py-types-Flask-Cors
SUBDIR += py-types-Pygments
SUBDIR += py-types-decorator
SUBDIR += py-types-docutils
diff --git a/devel/py-types-Flask-Cors/Makefile b/devel/py-types-Flask-Cors/Makefile
new file mode 100644
index 000000000000..05718e45c431
--- /dev/null
+++ b/devel/py-types-Flask-Cors/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= types-Flask-Cors
+PORTVERSION= 6.0.0.20250809
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/g:tl}-${PORTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Typing stubs for Flask-Cors
+WWW= https://github.com/python/typeshed
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flask>0:www/py-flask@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-types-Flask-Cors/distinfo b/devel/py-types-Flask-Cors/distinfo
new file mode 100644
index 000000000000..5f68052bc21c
--- /dev/null
+++ b/devel/py-types-Flask-Cors/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1772566507
+SHA256 (types_flask_cors-6.0.0.20250809.tar.gz) = 24380a2b82548634c0931d50b9aafab214eea9f85dcc04f15ab1518752a7e6aa
+SIZE (types_flask_cors-6.0.0.20250809.tar.gz) = 9951
diff --git a/devel/py-types-Flask-Cors/files/patch-pyproject.toml b/devel/py-types-Flask-Cors/files/patch-pyproject.toml
new file mode 100644
index 000000000000..2cda2ea8601a
--- /dev/null
+++ b/devel/py-types-Flask-Cors/files/patch-pyproject.toml
@@ -0,0 +1,23 @@
+--- pyproject.toml.orig 2025-08-09 03:16:34 UTC
++++ pyproject.toml
+@@ -1,12 +1,10 @@ build-backend = "setuptools.build_meta"
+ [build-system]
+ build-backend = "setuptools.build_meta"
+-requires = ["setuptools>=77.0.3"]
++requires = ["setuptools"]
+
+ [project]
+ name = "types-Flask-Cors"
+ version = "6.0.0.20250809"
+-license = "Apache-2.0"
+-license-files = ["LICENSE"]
+ description = "Typing stubs for Flask-Cors"
+ readme = { text = """\
+ ## Typing stubs for Flask-Cors
+@@ -45,6 +43,3 @@ dependencies = ['Flask>=2.0.0']
+ "Issue tracker" = "https://github.com/python/typeshed/issues"
+ "Chat" = "https://gitter.im/python/typing"
+
+-[tool.setuptools]
+-packages = ['flask_cors-stubs']
+-include-package-data = false
diff --git a/devel/py-types-Flask-Cors/files/patch-setup.py b/devel/py-types-Flask-Cors/files/patch-setup.py
new file mode 100644
index 000000000000..52a13c5cde20
--- /dev/null
+++ b/devel/py-types-Flask-Cors/files/patch-setup.py
@@ -0,0 +1,19 @@
+--- setup.py.orig 2025-08-09 03:16:34 UTC
++++ setup.py
+@@ -1,4 +1,14 @@
+-
+ from setuptools import setup
+
+-setup(package_data={'flask_cors-stubs': ['__init__.pyi', 'core.pyi', 'decorator.pyi', 'extension.pyi', 'version.pyi', 'METADATA.toml', 'py.typed']})
++setup(
++ name='types-Flask-Cors',
++ version='6.0.0.20250809',
++ description='Typing stubs for Flask-Cors',
++ license='Apache-2.0',
++ packages=['flask_cors-stubs'],
++ package_data={'flask_cors-stubs': ['__init__.pyi', 'core.pyi', 'decorator.pyi', 'extension.pyi', 'version.pyi', 'METADATA.toml', 'py.typed']},
++ install_requires=['Flask>=2.0.0'],
++ python_requires='>=3.9',
++ zip_safe=False,
++ include_package_data=True
++)
diff --git a/devel/py-types-Flask-Cors/pkg-descr b/devel/py-types-Flask-Cors/pkg-descr
new file mode 100644
index 000000000000..5adca1be10ba
--- /dev/null
+++ b/devel/py-types-Flask-Cors/pkg-descr
@@ -0,0 +1,4 @@
+types-Flask-Cors is typing stubs for Flask-Cors.
+
+This package provides type stubs for the Flask-Cors library, which enables
+CORS support for Flask applications.