From nobody Sun Sep 22 05:51:25 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XBFcG0GKpz5XNYS; Sun, 22 Sep 2024 05:51:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XBFcF5cDhz4tN7; Sun, 22 Sep 2024 05:51:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726984285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JI/DbcidYnV3JrQgvh5YlmYLxCgIUqs5XJTa5/tg+60=; b=pTW1YhzQT9Fp471LxdMB7T6js7XiIC3A2dw2tMr3r6DNYvGTlDYZHCx38+teR0BeBD10bq XsSjGBo7XUmfha/g/6SVC0NJijHUrEprtoljz69xE5MEOmYuI66r3lyrsTP+HS5gnQLCeJ JSrs9DP94TUyFvkovN3sdc1XMmsQ6Hp+bpxlawe5a8aL3d5uosunLikUnICrLQ1k2B2Idp X89skVYV0ZhRYaI0lSmEbltMPdVv3O7fPjBGO4xCLla0xoZa6DQwvgKyB0HQMFUYTAPSTu GHWjv//Y+vcl1IEJBJdXwJuNDV9B1wusCL4INwu3J60u5qQTA9TxXwLCJC+sxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726984285; a=rsa-sha256; cv=none; b=UsOOduqJQf7UrtYoPeJ3UHt5ns5jbFRj4gG2JPn61vf67w3/398yqQAND/JI21580802Ao QfvQFmrVMpOLUrvFqdKGpPnZDnAUDnbAo2057hkM2ACpCMa6xyrJDx8zWoR9J/2FcPQdCe djl8X2j0d3Qk56Fs6ZKJ+Lp3edni53sFvpqPlSwIRPwWBApseKmWAb7HHLsbAh9V1epneB C/bx94p06wV7wFN9WFmLQBF0k0u+AD5mDsg4bSl/POHygJozojD0nyK5bghWIw1awO3btQ jz4xdprAwu/FyalvvYKlEyJD6FLsx62mmaH2ZhnrWzJdd+lyJwbUokYBpN6cRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726984285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JI/DbcidYnV3JrQgvh5YlmYLxCgIUqs5XJTa5/tg+60=; b=fudxq20EanJqRq1u8i1pVr4bFxNyRWSoRcK43YXu3lN0W3Fm/3IlJC2epjB9wJNFbm5Ubw aauxyfMxwG0//RLT3bLYxftbD30faw++yfnq+oX7aNYMThIcZTVQw74ntewXn5xAQ8aCAA WRxYSaVIGPiMlC0sIX6u8phmR1nbi3B54mwHOyGUOkC+/eLiyKkeYyRoqLMHlJD83PpKTK i4LkG0tPXbK1rV35K+wa7ypBWORPgzBcgg6g91oFbQeIXvFllXflv9d9ZPFo/NMKHYMeBK LUWYC/IqQWHURmXwQlDJRF2t2zlLj7/+054YMYoLOLxeqMTRS6bFaZhtRSyTJA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XBFcF5CF5z14NG; Sun, 22 Sep 2024 05:51:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48M5pPLx022084; Sun, 22 Sep 2024 05:51:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48M5pPSo022081; Sun, 22 Sep 2024 05:51:25 GMT (envelope-from git) Date: Sun, 22 Sep 2024 05:51:25 GMT Message-Id: <202409220551.48M5pPSo022081@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 680659e894bc - main - science/py-pyphot: New port: Library for computing photometry from spectra List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 680659e894bca358d011c66bdba3b770b78d0896 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=680659e894bca358d011c66bdba3b770b78d0896 commit 680659e894bca358d011c66bdba3b770b78d0896 Author: Yuri Victorovich AuthorDate: 2024-09-22 04:11:53 +0000 Commit: Yuri Victorovich 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 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.