From patchwork Sat Feb 13 16:37:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 27036 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E41C227BC2E; Sat, 13 Feb 2021 16:38:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 199FF27BC27 for ; Sat, 13 Feb 2021 16:38:14 +0000 (GMT) Received: from localhost ([::1]:41908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAxvx-0004Xa-72 for patchwork@mira.cbaines.net; Sat, 13 Feb 2021 11:38:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAxvp-0004WQ-T3 for guix-patches@gnu.org; Sat, 13 Feb 2021 11:38:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAxvl-0008AC-Rx for guix-patches@gnu.org; Sat, 13 Feb 2021 11:38:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAxvl-0007MN-Os for guix-patches@gnu.org; Sat, 13 Feb 2021 11:38:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46492] [PATCH 5/5] Astronomy packages Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Feb 2021 16:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46492@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161323426028259 (code B ref -1); Sat, 13 Feb 2021 16:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2021 16:37:40 +0000 Received: from localhost ([127.0.0.1]:34938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAxvP-0007Lj-Ei for submit@debbugs.gnu.org; Sat, 13 Feb 2021 11:37:40 -0500 Received: from lists.gnu.org ([209.51.188.17]:42956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAxvN-0007Lb-Ld for submit@debbugs.gnu.org; Sat, 13 Feb 2021 11:37:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAxvN-0004HV-BT for guix-patches@gnu.org; Sat, 13 Feb 2021 11:37:37 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:33749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAxvG-00082L-EF for guix-patches@gnu.org; Sat, 13 Feb 2021 11:37:37 -0500 Received: by mail-wm1-x32c.google.com with SMTP id a16so2261825wmm.0 for ; Sat, 13 Feb 2021 08:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=J+Ir/o/FBWH8vsS2Ga8hCJS6h37USPPPmQsKaR42a2w=; b=b8apGvvTV3dBvc4WNEwUR8BplUb5odJt7c90hXqmtlG3i03v5qLjTBnr5TELHQ8nwb BOZtVhcIoa6srpejP3lPy8Ru/YtOv7udLds3dFhc6EO4vhzMXp7BpuXKc35CWvTsaQ4J ZqCJHktt29+1MfFmkAqdclBS6TtS483TINi4oz5mevnLrPLXfFfJyz0+kKiXbTZRQojy ukeL/ZJWVzs29MxUdmPkMkel6kiV8z82gJbXe5c80I6hj1mIFLMVUHBD/UUIUm1ts853 VLPkCqOn3zKyP5BiBVWFJPEPx8jECHD0t6KdcKREXJzX46ShrrOVvHzXtMdqdzeimoot ZS6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=J+Ir/o/FBWH8vsS2Ga8hCJS6h37USPPPmQsKaR42a2w=; b=i4nsANgGNQdEDeIeQNIpEhb4/pqfd3LZ8hu9Aq+do3pXWpwc0HsZp5pf6mVo8VzGFD 0HhlttMnPvnIflneRP2zGnTabU2rYA6/wrarPnWWyWOf7zEsyACe4yfOIK0RMal3tO4B i87+BsPzua/khXxugtzFOXeqvzJKfw0As/wVGpX/Wd3OfWMtWzq0y9eDiCMd3VT2zgPT odv6z9wv1B7IwJoxMNmWbWtal6h/BBROguZJpPPwuBLCGGX5IAfXPLvC4sGjGBQTAG36 ApvsixAOJQieCGBUd0CV/ZsYsi7G1jShCn1W1XYlLr/rcLTUCsXClyNL/JZU43eBA91O pzHQ== X-Gm-Message-State: AOAM530UucAcOP7WKXC9iafr5HU9K2mLDnY13gSRPrbDhG4tX9riGe3L tVteVnVhjls4RWxwQXOoyG4aeRAPYZP4JwvK9LkHgtTN6GI= X-Google-Smtp-Source: ABdhPJxopR2/3W0LlOPlLbiJkGsCmngsNdtWs0oo2+T3v/cP3sTBrOiUYAvPnU8rbz6EFU86wT1BPbmVLK+1jvvd6Yw= X-Received: by 2002:a7b:cb54:: with SMTP id v20mr7395429wmj.148.1613234248047; Sat, 13 Feb 2021 08:37:28 -0800 (PST) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Sat, 13 Feb 2021 16:37:17 +0000 Message-ID: Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=sharlatanus@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi Guix team! This issue includes 5 more packages: - astroalign - sep - pyerfa - erfa - qfits Related issue https://issues.guix.gnu.org/46375 Progress https://github.com/Hellseher/guix-patches/blob/main/astronomy.org --- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From 4537223357da02adcf118e4376bc6884be77cd86 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 13 Feb 2021 15:10:04 +0000 Subject: [PATCH 3/5] gnu: Add pyerfa * gnu/packages/astronomy.scm (python-pyerfa): New variable. --- gnu/packages/astronomy.scm | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 8d58d64a1c..59afe21294 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -48,6 +48,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages version-control) @@ -770,3 +771,44 @@ more.") "The package is a Python implementation of the mathematics that standard JPL ephemerides use to predict raw (x,y,z) planetary positions.") (license license:expat))) + +(define-public python-pyerfa + (package + (name "python-pyerfa") + (version "1.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyerfa" version)) + (sha256 + (base32 "1s78mdyrxha2jcckfs0wg5ynkf0pwh1bw9mmh99vprinxh9n4xri")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove bundled submodule library. + (delete-file-recursively "liberfa") + #t)))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'use-system-liberfa + (lambda _ + (setenv "PYERFA_USE_SYSTEM_LIBERFA" "1") + #t))))) + (native-inputs + `(("pytest" ,python-pytest) + ("setuptools-scm" ,python-setuptools-scm) + ("pytest-doctestplus" ,python-pytest-doctestplus))) + (inputs + `(("liberfa" ,erfa) + ("numpy" ,python-numpy))) + (home-page "https://github.com/liberfa/pyerfa") + (synopsis "Python bindings for ERFA") + (description + "PyERFA is the Python wrapper for the ERFA library (Essential +Routines for Fundamental Astronomy), a C library containing key algorithms for +astronomy, which is based on the SOFA library published by the International +Astronomical Union (IAU). All C routines are wrapped as Numpy universal +functions, so that they can be called with scalar or array inputs.") + (license license:bsd-3))) -- 2.30.0