misc/py-ml-collections: New port: Python collections library designed for ML usecases

This commit is contained in:
Yuri Victorovich
2025-10-03 18:25:20 -07:00
parent dd82f4045e
commit 5852fa4467
4 changed files with 36 additions and 0 deletions

View File

@@ -501,6 +501,7 @@
SUBDIR += py-mem0ai
SUBDIR += py-mffpy
SUBDIR += py-mixpanel
SUBDIR += py-ml-collections
SUBDIR += py-mmcv
SUBDIR += py-mmdet
SUBDIR += py-mmengine

View File

@@ -0,0 +1,24 @@
PORTNAME= ml-collections
DISTVERSION= 1.1.0
CATEGORIES= misc python # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python collections library designed for ML usecases
WWW= https://github.com/google/ml_collections
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.8:devel/py-flit-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}absl-py>0:devel/py-absl-py@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyyaml>0:devel/py-pyyaml@${PY_FLAVOR}
USES= python
USE_PYTHON= pep517 concurrent autoplist
NO_ARCH= yes
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1759525601
SHA256 (ml_collections-1.1.0.tar.gz) = 0ac1ac6511b9f1566863e0bb0afad0c64e906ea278ad3f4d2144a55322671f6f
SIZE (ml_collections-1.1.0.tar.gz) = 61356

View File

@@ -0,0 +1,8 @@
ML Collections is a library of Python collections designed for ML usecases.
ML Collections provides:
* ConfigDict: A 'dict' with additional functionality for easier management
of configuration dictionaries
* FrozenConfigDict: A configuration dictionary which is immutable
* FieldReference: A way to reference a field in a nested data structure
* lazy_imports: A mechanism to import modules when they are actually used