aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-07-03 17:47:28 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-07-03 17:48:45 +0000
commitcf910b495acbb4955ad288d355931506bba6c09d (patch)
treeeff72d9b01455e8a6e9151518443cf80a85542c8
parent3992794ac05f73d75c6a75f57ffc4251c96c2820 (diff)
downloadports-cf910b495acbb4955ad288d355931506bba6c09d.tar.gz
ports-cf910b495acbb4955ad288d355931506bba6c09d.zip
science/py-mp-api: New port: API for server for the Materials Project
-rw-r--r--science/Makefile1
-rw-r--r--science/py-mp-api/Makefile32
-rw-r--r--science/py-mp-api/distinfo3
-rw-r--r--science/py-mp-api/pkg-descr2
4 files changed, 38 insertions, 0 deletions
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.