Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2024 05:51:25 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 680659e894bc - main - science/py-pyphot: New port: Library for computing photometry from spectra
Message-ID:  <202409220551.48M5pPSo022081@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit 680659e894bca358d011c66bdba3b770b78d0896
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-09-22 04:11:53 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-09-22 05:51:20 +0000

    science/py-pyphot: New port: Library for computing photometry from spectra
---
 science/Makefile            |  1 +
 science/py-pyphot/Makefile  | 27 +++++++++++++++++++++++++++
 science/py-pyphot/distinfo  |  3 +++
 science/py-pyphot/pkg-descr | 13 +++++++++++++
 4 files changed, 44 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 195da3c9f7c4..377a3db7e439 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -409,6 +409,7 @@
     SUBDIR += py-pymbd
     SUBDIR += py-pymol
     SUBDIR += py-pyosf
+    SUBDIR += py-pyphot
     SUBDIR += py-pyprecice
     SUBDIR += py-pyqubo
     SUBDIR += py-pysal
diff --git a/science/py-pyphot/Makefile b/science/py-pyphot/Makefile
new file mode 100644
index 000000000000..341f86eac817
--- /dev/null
+++ b/science/py-pyphot/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	pyphot
+DISTVERSION=	1.4.7
+CATEGORIES=	science
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library for computing photometry from spectra
+WWW=		https://mfouesneau.github.io/pyphot/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}astropy>0:astro/py-astropy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=2.0:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tables>0:devel/py-tables@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/science/py-pyphot/distinfo b/science/py-pyphot/distinfo
new file mode 100644
index 000000000000..eb2396349fd3
--- /dev/null
+++ b/science/py-pyphot/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1726947143
+SHA256 (pyphot-1.4.7.tar.gz) = 001ebeb7741e81bf864b0240ecf32eed9c613e79ab06d2274042d7669f754df6
+SIZE (pyphot-1.4.7.tar.gz) = 14971120
diff --git a/science/py-pyphot/pkg-descr b/science/py-pyphot/pkg-descr
new file mode 100644
index 000000000000..e52d54b01669
--- /dev/null
+++ b/science/py-pyphot/pkg-descr
@@ -0,0 +1,13 @@
+PYPHOT is a set of tools to compute synthetic photometry in a simple way, ideal
+to integrate in larger projects.
+
+The inputs are photonic or energetic response functions for the desired
+photometric bands and stellar spectra. The modules are flexible to handle units
+in the wavelength definition through a simplified version of pint.
+
+Filters are represented individually by a Filter object. Collections of filters
+are handled with a Library. We provide an internal library that contains a
+signitificant amount of common filters.
+
+Each filter is minimally defined by a wavelength and throughput. Many properties
+such as central of pivot wavelength are computed internally.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409220551.48M5pPSo022081>