diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-08-01 09:30:48 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-08-01 09:43:04 +0000 |
commit | a275c86efd8d9045a96d3b50c9450c9535ff3ab8 (patch) | |
tree | 7552164927d40c8b3d98f5364387927b0478680d | |
parent | f8c6ee112249594423847fe6e05632b7a89d0b63 (diff) | |
download | ports-a275c86efd8d9045a96d3b50c9450c9535ff3ab8.tar.gz ports-a275c86efd8d9045a96d3b50c9450c9535ff3ab8.zip |
science/py-nglview: New port: IPython widget to view molecular structures and trajectories
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/py-nglview/Makefile | 25 | ||||
-rw-r--r-- | science/py-nglview/distinfo | 3 | ||||
-rw-r--r-- | science/py-nglview/files/patch-pyproject.toml | 7 | ||||
-rw-r--r-- | science/py-nglview/pkg-descr | 5 |
5 files changed, 41 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index 8ec7b1043716..0a3c26bb4dd5 100644 --- a/science/Makefile +++ b/science/Makefile @@ -368,6 +368,7 @@ SUBDIR += py-mrchem SUBDIR += py-netCDF4 SUBDIR += py-netcdf-flattener + SUBDIR += py-nglview SUBDIR += py-nibabel SUBDIR += py-nilearn SUBDIR += py-obspy diff --git a/science/py-nglview/Makefile b/science/py-nglview/Makefile new file mode 100644 index 000000000000..b9951c1e4921 --- /dev/null +++ b/science/py-nglview/Makefile @@ -0,0 +1,25 @@ +PORTNAME= nglview +DISTVERSION= 3.0.6 +CATEGORIES= science python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= IPython widget to view molecular structures and trajectories +WWW= http://nglviewer.org/nglview/latest/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jupyter-packaging>=0.7.9:devel/py-jupyter-packaging@${PY_FLAVOR} \ + ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}versioneer-518>0:devel/py-versioneer-518@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipywidgets>0:devel/py-ipywidgets@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist pytest # 28 tests fail because of missing test dependencies + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/science/py-nglview/distinfo b/science/py-nglview/distinfo new file mode 100644 index 000000000000..a27e597b1bfe --- /dev/null +++ b/science/py-nglview/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1690880651 +SHA256 (nglview-3.0.6.tar.gz) = 2afd95128118953813634472a7ec5eb596bff4b0d8acf5900045ccc2aa783bbb +SIZE (nglview-3.0.6.tar.gz) = 6726127 diff --git a/science/py-nglview/files/patch-pyproject.toml b/science/py-nglview/files/patch-pyproject.toml new file mode 100644 index 000000000000..05acfb963d8a --- /dev/null +++ b/science/py-nglview/files/patch-pyproject.toml @@ -0,0 +1,7 @@ +--- pyproject.toml.orig 2023-08-01 09:06:19 UTC ++++ pyproject.toml +@@ -1,3 +1,3 @@ + [build-system] +-requires = ["jupyter_packaging~=0.7.9", "setuptools>=40.8.0", "wheel", "versioneer-518"] ++requires = ["jupyter_packaging", "setuptools>=40.8.0", "wheel", "versioneer-518"] + build-backend = "setuptools.build_meta" diff --git a/science/py-nglview/pkg-descr b/science/py-nglview/pkg-descr new file mode 100644 index 000000000000..9bb15d5f3ebd --- /dev/null +++ b/science/py-nglview/pkg-descr @@ -0,0 +1,5 @@ +nglview is an IPython/Jupyter widget to interactively view molecular structures +and trajectories. Utilizes the embeddable NGL Viewer for rendering. Support for +showing data from the file-system, RCSB PDB, simpletraj and from objects of +analysis libraries mdtraj, pytraj, mdanalysis, ParmEd, rdkit, ase, HTMD, +biopython, cctbx, pyrosetta, schrodinger's Structure. |