From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 55935@debbugs.gnu.org
Subject: [bug#55935] [PATCH 1/1] gnu: Add casacore
Date: Sun, 12 Jun 2022 22:33:13 +0100 [thread overview]
Message-ID: <CAO+9K5qbn-OGDas-tUiia2maSNkyL_sDu2wk6TtSyb0Q8s2CNQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 751 bytes --]
Hi Guix team!
Here is one more core Astronomical library (peeped at
https://blends.debian.org/astro/tasks/, which I use as guidiing for
packing to Guix)
Sharlatan Hellseher (1):
gnu: Add casacore
gnu/packages/astronomy.scm | 102 +++++++++++++++++++++++++++++++++++--
1 file changed, 97 insertions(+), 5 deletions(-)
base-commit: 0006a9a83a568715f7f30fbb9abb4c78da06a886
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
[-- Attachment #2: 0001-gnu-Add-casacore.patch --]
[-- Type: text/x-patch, Size: 6082 bytes --]
From 916bde255b94eab85c10e55104b0e088781ef943 Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Sun, 12 Jun 2022 22:25:07 +0100
Subject: [PATCH 1/1] gnu: Add casacore
* gnu/packages/astronomy.scm (casacore): New variable.
Modules sorted alphabetically to easy maintannce.
---
gnu/packages/astronomy.scm | 102 +++++++++++++++++++++++++++++++++++--
1 file changed, 97 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 93c45d5780..a0de5a617f 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -26,18 +26,15 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages astronomy)
- #:use-module (guix packages)
#:use-module ((guix licenses) #:prefix license:)
- #:use-module (guix download)
- #:use-module (guix git-download)
- #:use-module (guix utils)
- #:use-module (gnu packages)
#:use-module (gnu packages algebra)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages curl)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gettext)
@@ -49,16 +46,19 @@ (define-module (gnu packages astronomy)
#:use-module (gnu packages libusb)
#:use-module (gnu packages lua)
#:use-module (gnu packages maths)
+ #:use-module (gnu packages ncurses)
#:use-module (gnu packages netpbm)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages pretty-print)
+ #:use-module (gnu packages python)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-science)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
+ #:use-module (gnu packages readline)
#:use-module (gnu packages time)
#:use-module (gnu packages version-control)
#:use-module (gnu packages video)
@@ -66,9 +66,15 @@ (define-module (gnu packages astronomy)
#:use-module (gnu packages xiph)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
+ #:use-module (gnu packages)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
+ #:use-module (guix download)
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module (guix packages)
+ #:use-module (guix utils)
#:use-module (ice-9 match)
#:use-module (srfi srfi-1))
@@ -107,6 +113,92 @@ (define-public calceph
@end itemize\n")
(license license:cecill)))
+(define-public casacore
+ (package
+ (name "casacore")
+ (version "3.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/casacore/casacore")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "05ar5gykgh4dm826xplj5ri5rw7znhxrvin2l67a3mjwfys7r2a0"))
+ (file-name (git-file-name name version))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ ;; NOTE: (Sharlatan-20220611T213043+0100): There are multiple fails in
+ ;; tests which require additional measures data. They are
+ ;; distributed via FTP without any license:
+ ;; ftp://ftp.astron.nl/outgoing/Measures/
+ ;; Check how to fix tests.
+ #:tests? #f
+ #:parallel-build? #t
+ #:configure-flags
+ #~(list "-DBUILD_PYTHON3=ON"
+ "-DBUILD_PYTHON=OFF"
+ "-DBUILD_TESTING=TRUE"
+ "-DUSE_HDF5=ON"
+ "-DUSE_OPENMP=OFF"
+ "-DUSE_THREADS=ON"
+ (string-append "-DDATA_DIR=" #$output "/data")
+ (string-append "-DPYTHON3_EXECUTABLE=" #$python "/bin")
+ (string-append "-DPYTHON3_INCLUDE_DIR=" #$python "/include")
+ (string-append "-DPYTHON3_LIBRARY=" #$python "/lib"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-env
+ (lambda _
+ (setenv "HOME" "/tmp")))
+ (add-after 'unpack 'use-absolute-rm
+ (lambda _
+ (substitute* "casa/OS/test/tFile.run"
+ (("/bin/rm") (which "rm")))
+ #t))
+ (add-after 'unpack 'use-absolute-python3
+ (lambda _
+ (substitute* "build-tools/casacore_floatcheck"
+ (("#!/usr/bin/env python")
+ (string-append "#!" #$python "/bin/python3")))
+ #t))
+ ;; NOTE: (Sharlatan-20220611T200837+0100): Workaround for casacore
+ ;; tests stuck with missing "qsub" issue.
+ ;; https://github.com/casacore/casacore/issues/1122
+ (add-after 'unpack 'patch-pre-test-checks
+ (lambda _
+ (substitute* "build-tools/casacore_assay"
+ (("QSUBP=.*$") "QSUBP=\n")
+ (("YODP=.*$") "YODP=\n"))
+ #t)))))
+ (native-inputs
+ (list bison
+ boost
+ flex
+ readline))
+ (inputs
+ (list cfitsio
+ fftw
+ fftwf
+ gfortran
+ hdf5
+ lapack
+ ncurses
+ openblas
+ python
+ python-numpy
+ wcslib))
+ (home-page "http://casacore.github.io/casacore/")
+ (synopsis "Suite of C++ libraries for radio astronomy data processing")
+ (description
+ "The casacore package contains the core libraries of the old
+@code{AIPS++/CASA} (Common Astronomy Software Application) package. This split
+was made to get a better separation of core libraries and applications.
+(CASA @url{https://casa.nrao.edu/}) is now built on top of Casacore.")
+ (license license:gpl2)))
+
(define-public cfitsio
(package
(name "cfitsio")
--
2.36.0
next reply other threads:[~2022-06-12 21:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-12 21:33 Sharlatan Hellseher [this message]
2022-06-23 21:20 ` bug#55935: [PATCH 1/1] gnu: Add casacore Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAO+9K5qbn-OGDas-tUiia2maSNkyL_sDu2wk6TtSyb0Q8s2CNQ@mail.gmail.com \
--to=sharlatanus@gmail.com \
--cc=55935@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.