git: cf5795daf865 - main - devel/py-fastcore: New port: Python supercharged for fastai development

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 05 May 2026 19:07:51 UTC
The branch main has been updated by yuri:

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

commit cf5795daf8652bf3db8f1dc9315696f4202270b0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-05-05 18:31:14 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-05-05 19:07:46 +0000

    devel/py-fastcore: New port: Python supercharged for fastai development
---
 devel/Makefile                               |  1 +
 devel/py-fastcore/Makefile                   | 23 +++++++++++++++++++++++
 devel/py-fastcore/distinfo                   |  3 +++
 devel/py-fastcore/files/patch-pyproject.toml | 10 ++++++++++
 devel/py-fastcore/pkg-descr                  |  3 +++
 5 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 0dcc30857eda..1c4411062a58 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4959,6 +4959,7 @@
     SUBDIR += py-fam
     SUBDIR += py-fastbencode
     SUBDIR += py-fastcache
+    SUBDIR += py-fastcore
     SUBDIR += py-fasteners
     SUBDIR += py-fastentrypoints
     SUBDIR += py-fastf1
diff --git a/devel/py-fastcore/Makefile b/devel/py-fastcore/Makefile
new file mode 100644
index 000000000000..5aa77d168383
--- /dev/null
+++ b/devel/py-fastcore/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	fastcore
+DISTVERSION=	1.12.44
+CATEGORIES=	devel python # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python supercharged for fastai development
+WWW=		https://fastcore.fast.ai/ \
+		https://github.com/AnswerDotAI/fastcore/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-fastcore/distinfo b/devel/py-fastcore/distinfo
new file mode 100644
index 000000000000..a228a6e3a868
--- /dev/null
+++ b/devel/py-fastcore/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1777667602
+SHA256 (fastcore-1.12.44.tar.gz) = d58c3ba39e3470539c8ed2f4f81015064bd42ac8eea8df248bf6369d9bc5fb00
+SIZE (fastcore-1.12.44.tar.gz) = 100020
diff --git a/devel/py-fastcore/files/patch-pyproject.toml b/devel/py-fastcore/files/patch-pyproject.toml
new file mode 100644
index 000000000000..0a281c724749
--- /dev/null
+++ b/devel/py-fastcore/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+-- Remove version constraint on setuptools to be compatible with the port.
+--- pyproject.toml.orig	2026-05-01 13:31:12 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=64"]
++requires = ["setuptools"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
diff --git a/devel/py-fastcore/pkg-descr b/devel/py-fastcore/pkg-descr
new file mode 100644
index 000000000000..74ca236ab83e
--- /dev/null
+++ b/devel/py-fastcore/pkg-descr
@@ -0,0 +1,3 @@
+fastcore is a Python library extending the standard library and providing
+utilities used by the fastai ecosystem, including typed dispatch, testing
+helpers, documentation tools, and more.