From patchwork Sun Jan 2 22:49:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 35904 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 9719727BBEA; Sun, 2 Jan 2022 22:50:33 +0000 (GMT) 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS 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 2136E27BBE9 for ; Sun, 2 Jan 2022 22:50:33 +0000 (GMT) Received: from localhost ([::1]:41132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n49gO-0001XU-Bn for patchwork@mira.cbaines.net; Sun, 02 Jan 2022 17:50:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n49fv-0001Vv-Oe for guix-patches@gnu.org; Sun, 02 Jan 2022 17:50:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n49fv-00071I-E3 for guix-patches@gnu.org; Sun, 02 Jan 2022 17:50:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n49fv-0008Qb-Df for guix-patches@gnu.org; Sun, 02 Jan 2022 17:50:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51765] References: In-Reply-To: Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Jan 2022 22:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51765@debbugs.gnu.org Received: via spool by 51765-submit@debbugs.gnu.org id=B51765.164116379132350 (code B ref 51765); Sun, 02 Jan 2022 22:50:03 +0000 Received: (at 51765) by debbugs.gnu.org; 2 Jan 2022 22:49:51 +0000 Received: from localhost ([127.0.0.1]:33879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n49fj-0008Ph-In for submit@debbugs.gnu.org; Sun, 02 Jan 2022 17:49:51 -0500 Received: from mail-wr1-f41.google.com ([209.85.221.41]:36519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n49fh-0008PS-R1 for 51765@debbugs.gnu.org; Sun, 02 Jan 2022 17:49:50 -0500 Received: by mail-wr1-f41.google.com with SMTP id r17so66676873wrc.3 for <51765@debbugs.gnu.org>; Sun, 02 Jan 2022 14:49:49 -0800 (PST) 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=ABXUFjZZZvHc5y2XRqgOggj2GLmtxYUJIreFNmwvytQ=; b=SSlBxkWHkuFUxkIN2sX9c9LNMIzm4hm6NIQKdhodTuYMlSt9n23uA71Y8qQgkch09s KKSjcgkAKOfCfbCAhdBt4IJx2LZhsAxgTXhLT90s3K7320Za4/gSD8NLWo8S4N81fxQK DdWIK5buHAxS/FMN0WPenFdynF1hapG9OC+A46wKJj+5CivILFDv7g3E8mSoI2czRJrX Xvv52a+KlFX9RrrNUXnB6PUiJEI7UyMnTjm9z95udTAnZ5+mK2/yZS4eCsLZhwTdPHs0 3fsEqxMdJQ8AmSQNfVV42VhrTxCg8PAy8aYgfh6JdyZBgJVvdNfZD3Lj/7vDqp5rfPum 2hmQ== 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=ABXUFjZZZvHc5y2XRqgOggj2GLmtxYUJIreFNmwvytQ=; b=KxrrFzeOCBUX6IFGWDIvE+SnXlMc7FebdIg2IJpoGsElbiXf7mEBiMW2tXw3kL+PoH tc+Tuio0CbSjzFn3Xm6c4PJc7r+FmnNfjwUuBli3O3ngL/4SiYpLdloh5afaB1dw5+gh s0G+9zOKJRr+R5/jgm9tPdFYCkeRrXYzMcgAMREBSKIkCimPitxePJo23622nWv7zE+u bnB4YXy+FEgwryMzFh+KfWDY6s8KZ5fw6c4/LenfabjkUD6PWWiycwp2kNugOnlOd2Du hnKg5ZFZTUrmgnIhdbpHRSp3ObZ2842BSWgmhbtMlQ/lJs82dN44XilxzlINbBwZB+LS mDjw== X-Gm-Message-State: AOAM532IJGW8d/A9KGuEhqk7nT4+V/PgiHHvJPqw0HpJctGeaVQnv9ZK b11KQReI2/lGIB4C927AMYtN/2D1WrasY0nkTGEhxlRG X-Google-Smtp-Source: ABdhPJz9tt/wsWbWh5J3mQvWfjKqC0Rm0E0niLyzQmXWx6/SxsYgXLSErMtxQibed8bEyeFXN6pr9sKV5YFAQrqlNbo= X-Received: by 2002:a5d:4a8e:: with SMTP id o14mr35550838wrq.441.1641163784222; Sun, 02 Jan 2022 14:49:44 -0800 (PST) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Sun, 2 Jan 2022 22:49:33 +0000 Message-ID: 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 -- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From e252c2cd52cc91526923ac43f714f7bab767bf93 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 2 Jan 2022 22:43:17 +0000 Subject: [PATCH 6/6] gnu: Add gwcs * gnu/packages/astronomy.scm: (python-gwcs): New variable. --- gnu/packages/astronomy.scm | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index e3c7495ed4..77f8cfa024 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -66,6 +66,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)) @@ -1438,3 +1439,53 @@ (define-public python-skyfield "Skyfield computes positions for the stars, planets, and satellites in orbit around the Earth.") (license license:expat))) + +(define-public python-gwcs + (package + (name "python-gwcs") + (version "0.18.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "gwcs" version)) + (sha256 + (base32 "194j49m8xjjzv9pp8cnj06igz8sdxb0nphyybcc7mhigw0f0kr30")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + ;; NOTE: (Sharlatan-20211229T163203+0000): Check if tests + ;; need to be run via tox + (invoke "python" "-m" "pytest" "--pyargs" "gwcs"))))))) + (native-inputs + (list python-jsonschema + python-jmespath + python-pytest + python-pytest-doctestplus + python-pyyaml + python-semantic-version + python-setuptools-scm)) + (inputs + (list python-asdf + python-asdf-astropy + python-astropy + python-asdf-wcs-schemas + python-numpy + python-scipy)) + (home-page "https://gwcs.readthedocs.io/en/latest/") + (synopsis "Generalized World Coordinate System") + (description + "Generalized World Coordinate System (GWCS) is an Astropy affiliated package +providing tools for managing the World Coordinate System of astronomical data. + +GWCS takes a general approach to the problem of expressing transformations +between pixel and world coordinates. It supports a data model which includes the +entire transformation pipeline from input coordinates (detector by default) to +world coordinates. It is tightly integrated with Astropy.") + ;; NOTE: (Sharlatan-20211229T210517+0000): There is no reference to any + ;; license in source. + (license #f))) -- 2.34.0