git: 9b01d7f0f853 - main - science/py-periodictable: New port: Extensible periodic table of the elements pre-populated with data

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 04 May 2024 17:16:16 UTC
The branch main has been updated by yuri:

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

commit 9b01d7f0f853addfe10f82849020dbba30e59766
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-04 16:30:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-04 17:16:06 +0000

    science/py-periodictable: New port: Extensible periodic table of the elements pre-populated with data
---
 science/Makefile                   |  1 +
 science/py-periodictable/Makefile  | 22 ++++++++++++++++++++++
 science/py-periodictable/distinfo  |  3 +++
 science/py-periodictable/pkg-descr |  2 ++
 4 files changed, 28 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 3fc8ac08b67d..0455d6c14621 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -383,6 +383,7 @@
     SUBDIR += py-paida
     SUBDIR += py-paramz
     SUBDIR += py-penaltymodel
+    SUBDIR += py-periodictable
     SUBDIR += py-phono3py
     SUBDIR += py-phonopy
     SUBDIR += py-pupynere
diff --git a/science/py-periodictable/Makefile b/science/py-periodictable/Makefile
new file mode 100644
index 000000000000..457fd07e33e7
--- /dev/null
+++ b/science/py-periodictable/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	periodictable
+DISTVERSION=	1.7.0
+CATEGORIES=	science python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Extensible periodic table of the elements pre-populated with data
+WWW=		https://periodictable.readthedocs.io/en/latest/
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}pyparsing>0:devel/py-pyparsing@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/science/py-periodictable/distinfo b/science/py-periodictable/distinfo
new file mode 100644
index 000000000000..24a297f2245b
--- /dev/null
+++ b/science/py-periodictable/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1714797378
+SHA256 (periodictable-1.7.0.tar.gz) = 420e57c2b19d6a521b1c0b5e387da590a31a8456e4cc1c00bca5ce2dc5f05ea9
+SIZE (periodictable-1.7.0.tar.gz) = 1003080
diff --git a/science/py-periodictable/pkg-descr b/science/py-periodictable/pkg-descr
new file mode 100644
index 000000000000..14e907d997b4
--- /dev/null
+++ b/science/py-periodictable/pkg-descr
@@ -0,0 +1,2 @@
+The periodictable package provides a periodic table of the elements with support
+for mass, density and xray/neutron scattering information.