git: cf910b495acb - main - science/py-mp-api: New port: API for server for the Materials Project

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 03 Jul 2023 17:48:49 UTC
The branch main has been updated by yuri:

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

commit cf910b495acbb4955ad288d355931506bba6c09d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-03 17:47:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-03 17:48:45 +0000

    science/py-mp-api: New port: API for server for the Materials Project
---
 science/Makefile            |  1 +
 science/py-mp-api/Makefile  | 32 ++++++++++++++++++++++++++++++++
 science/py-mp-api/distinfo  |  3 +++
 science/py-mp-api/pkg-descr |  2 ++
 4 files changed, 38 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 098f547302de..0b1016789ed0 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -363,6 +363,7 @@
     SUBDIR += py-mmtf-python
     SUBDIR += py-molmod
     SUBDIR += py-moltemplate
+    SUBDIR += py-mp-api
     SUBDIR += py-mpcontribs-client
     SUBDIR += py-mrchem
     SUBDIR += py-netCDF4
diff --git a/science/py-mp-api/Makefile b/science/py-mp-api/Makefile
new file mode 100644
index 000000000000..cdebe156120e
--- /dev/null
+++ b/science/py-mp-api/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	mp-api
+DISTVERSION=	0.33.3
+CATEGORIES=	science python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	API for server for the Materials Project
+WWW=		https://materialsproject.github.io/api/
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}boto3>=0:www/py-boto3@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}custodian>0:devel/py-custodian@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}emmet-core>=0.39.8:science/py-emmet-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}monty>=2022.3.12:devel/py-monty@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mpcontribs-client>=5.0.10:science/py-mpcontribs-client@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}msgpack>0:devel/py-msgpack@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic>=1.8.2:devel/py-pydantic@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pymatgen-analysis-alloys>=0.0.3:science/py-pymatgen-analysis-alloys@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pymatgen>=2022.3.7:science/py-pymatgen@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.27.1:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.1.1:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES=		python pytest
+USE_PYTHON=	pep517 autoplist pytest
+
+.include <bsd.port.mk>
diff --git a/science/py-mp-api/distinfo b/science/py-mp-api/distinfo
new file mode 100644
index 000000000000..5001528a8603
--- /dev/null
+++ b/science/py-mp-api/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688271696
+SHA256 (mp-api-0.33.3.tar.gz) = 652d9ae791165fea94a20fd9335e0c1c89db8e071f85e9e7d78cf064a274ff08
+SIZE (mp-api-0.33.3.tar.gz) = 692342
diff --git a/science/py-mp-api/pkg-descr b/science/py-mp-api/pkg-descr
new file mode 100644
index 000000000000..31d9de38a9a5
--- /dev/null
+++ b/science/py-mp-api/pkg-descr
@@ -0,0 +1,2 @@
+mp-api contains the core client implementation for the updated
+Materials Project API.