From patchwork Mon May 23 22:52:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 39587 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 D4CF027BBEA; Mon, 23 May 2022 23:53:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5C45927BBE9 for ; Mon, 23 May 2022 23:53:19 +0100 (BST) Received: from localhost ([::1]:50364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntGvO-0007ZF-I3 for patchwork@mira.cbaines.net; Mon, 23 May 2022 18:53:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntGv8-0007Yp-GN for guix-patches@gnu.org; Mon, 23 May 2022 18:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntGv8-0007yg-7a for guix-patches@gnu.org; Mon, 23 May 2022 18:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntGv8-0006Fk-6k for guix-patches@gnu.org; Mon, 23 May 2022 18:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55604] [PATCH 1/1] gnu: Add python-spherical-geometry Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 May 2022 22:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55604 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55604@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165334636024000 (code B ref -1); Mon, 23 May 2022 22:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2022 22:52:40 +0000 Received: from localhost ([127.0.0.1]:50400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntGum-0006F1-B5 for submit@debbugs.gnu.org; Mon, 23 May 2022 18:52:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:50470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntGuk-0006Et-5e for submit@debbugs.gnu.org; Mon, 23 May 2022 18:52:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntGuj-0007XE-To for guix-patches@gnu.org; Mon, 23 May 2022 18:52:37 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:40677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntGui-0007vo-2b for guix-patches@gnu.org; Mon, 23 May 2022 18:52:37 -0400 Received: by mail-ed1-x536.google.com with SMTP id i40so20921574eda.7 for ; Mon, 23 May 2022 15:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=j5Q870B1+jGBcCTMQ591hyGViQW/Zr78HdzpxchMWxU=; b=KI456zRIhT5P0yh+ERI/b53uhyOmqO7kypNYk/+hWZBmI2k5GVYyHDHBc7j4uLDPWe tBuNYtYWksjYqXCELEfC3XexoG/bqj2wpZBLSTvHTQuKHAWJGYfo+iNTz85i1RlzShJ8 C/7nMKlvSokK+2eXo/djLSa50b63MLHSfupZwaDHNibSjAwscUXdZD0VfU5wowXRokA7 we1Jl7UbihEEcyNyVdN3O5KE8Bi0pQoidEWcUvW8YvQr6nDBnRNr8XwT4MLsUSaPIpcl KgU8N+aIefB+sZywTD4Fy3CuEssDKCxQXRVlkXZx+TEO3X3ylNJy/tqJZajK8Y3hZonH GlWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=j5Q870B1+jGBcCTMQ591hyGViQW/Zr78HdzpxchMWxU=; b=UqQdz0snnZSRwRb3Y+d43TwRrsvYCpiqvfb5y0G6c9i4rNNueIdhwSPqbDudYmkIA9 WrdoQ5HCQPb392dgZs4Pj7PL/BsG4tUMuDnwI/p7jfLRh2pwKrGSUbwDOHWb/4mX5Grv C22Enow741cVszlwlTX41hD+ryBsDzg7EAWL8T5bgQ0y4wd0jWi5BPsf1lcyVuJ3VRV/ 1NrxyeWcc0M8NW6SU3fgRIFPN51j2lVbOIyASxZX35hY6xAn70w0rA8/FjC969ZhOiwL TSIiWAgcm0y2vIh5Si+AjHwtR41DNED2GPbiuwHVRIBk1LU9Hq91w+YkUzPrSu7LwIR7 G3Ag== X-Gm-Message-State: AOAM533ZIcS8MpaQ6BGmEeicuL9Sv30yuGax94qrLpXnTujevYOAaKKD WMvk0y9460p0gm5W/SWYxHeVuKM0dI3tNPjHFWaZPMOTt3w= X-Google-Smtp-Source: ABdhPJz+2+4kTJGHZUa9PfJYuUuStHaC0q7EbE1i/2heYSlj4Idm2qwtM4yezY1LONuIyfmvznKRiZ/b7hYMo4LkqOY= X-Received: by 2002:aa7:ce08:0:b0:42a:f7c9:2afd with SMTP id d8-20020aa7ce08000000b0042af7c92afdmr25521713edv.344.1653346350774; Mon, 23 May 2022 15:52:30 -0700 (PDT) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Mon, 23 May 2022 23:52:19 +0100 Message-ID: Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=sharlatanus@gmail.com; helo=mail-ed1-x536.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, T_SCC_BODY_TEXT_LINE=-0.01 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 patch ads astronomical Python libary spherical_geometry Sharlatan Hellseher (1): gnu: Add python-spherical-geometry gnu/packages/astronomy.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) base-commit: 00be2fcb0b79641790a793df7640344e96283a2a Pending astronomical patches: - https://issues.guix.gnu.org/55509 (calceph) - https://issues.guix.gnu.org/48454 (assay - custom test suit for soem packed astronomical packages with tests disbled) --- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From 2c838787dd751a5695ea31accd2738eafc96ceb8 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 23 May 2022 23:44:58 +0100 Subject: [PATCH 1/1] gnu: Add python-spherical-geometry * gnu/packages/astronomy.scm (python-spherical-geometry): New variable. --- gnu/packages/astronomy.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index c209b1538f..fc09a55f7a 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -48,6 +48,7 @@ (define-module (gnu packages astronomy) #:use-module (gnu packages libusb) #:use-module (gnu packages lua) #:use-module (gnu packages maths) + #:use-module (gnu packages multiprecision) #:use-module (gnu packages netpbm) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -68,6 +69,7 @@ (define-module (gnu packages astronomy) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix gexp) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) @@ -925,6 +927,54 @@ (define-public python-astral elevation, solar azimuth, rahukaalam, and the phases of the moon.") (license license:asl2.0))) +(define-public python-spherical-geometry + (package + (name "python-spherical-geometry") + (version "1.2.22") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/spacetelescope/spherical_geometry") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kzcncqir4v7nhk9lxj9gxr32p3krkaqa58y2i4kksgxxy24qw4z")))) + (build-system python-build-system) + (arguments + (list + ;; NOTE: (Sharlatan-20220523T231348+0100): Tests depends on old Python2 + ;; libarry `sphere' + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'preparations + (lambda _ + ;; Fixing: setuptools-scm was unable to detect version for ... + (substitute* "setup.py" + (("use_scm_version=True") + (format #f "version=~s" #$version)) + (("setup_requires=\\['setuptools_scm'\\],.*") + "")) + ;; Use our own libraries in place of bundles. + (setenv "USE_SYSTEM_QD" "1")))))) + (native-inputs + (list python-pytest + python-setuptools-scm)) + (inputs + (list qd)) + (propagated-inputs + (list python-astropy + python-numpy)) + (home-page "https://github.com/spacetelescope/tweakwcs") + (synopsis "Python astronimical package for handling spherical polygons") + (description + "The @code{spherical_geometry} library is a Python package for handling +spherical polygons that represent arbitrary regions of the sky.") + ;; LICENSE.rst Association of Universities for Research in Astronomy (AURA) + ;; QD_LIBRARY_LICENSE.rst for bandeled QD source + (license license:bsd-3))) + (define-public libnova (package (name "libnova") -- 2.36.0