From patchwork Wed Mar 20 22:28:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 62076 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 D6A2E27BBE2; Wed, 20 Mar 2024 22:32:30 +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, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 C5AEA27BBEA for ; Wed, 20 Mar 2024 22:32:29 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4Tn-0002ug-Eb; Wed, 20 Mar 2024 18:32:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rn4T7-0001kN-3h for guix-patches@gnu.org; Wed, 20 Mar 2024 18:31:38 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rn4T5-0005uu-18 for guix-patches@gnu.org; Wed, 20 Mar 2024 18:31:32 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4Th-0005mB-Mi; Wed, 20 Mar 2024 18:32:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69924] [PATCH 43/49] gnu: Add python-astroplan. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Wed, 20 Mar 2024 22:32:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69924 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69924@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 69924-submit@debbugs.gnu.org id=B69924.171097392422074 (code B ref 69924); Wed, 20 Mar 2024 22:32:09 +0000 Received: (at 69924) by debbugs.gnu.org; 20 Mar 2024 22:32:04 +0000 Received: from localhost ([127.0.0.1]:36586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4Tb-0005ji-FA for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:32:04 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:46369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4SZ-0005YS-AP for 69924@debbugs.gnu.org; Wed, 20 Mar 2024 18:30:59 -0400 Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4140aadfe2eso2276985e9.1 for <69924@debbugs.gnu.org>; Wed, 20 Mar 2024 15:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710973754; x=1711578554; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1+Z/3nUpgvIwIxJoYaAC7NtXFTWwEviXh+7X9DkaLEc=; b=N354HYB7jyBavSGKsQ/8hFHRft9x4P1rRXN6V4BJa6KUyoKbPylMXIbzhf7r8MfDwI BXmEvnSXzJQPvW4voo0AnNzKKh2LWHGjPQ9uuUffqFbvzbI8RjOszuVbjIfeI9ZNywZu jHdMMXYNEPHKXiSEKIUF3cj3hOKfTILwP4gQJwFMw0kQqVP/7XPmfKM2Z2K3qBARvfJl DkSszR18DLO41uC96v2DFJ0Mv3LCZ2a9S7NocKq1Tw5x0flavfqCpIEtrc74AGCrieKm 5fQ7PnVdsP+CsPkVRDq5s4ilT4/O1/l7BAV1RzQqN6Jrj2WF6GMQRYg7BXkkz16M+vrE wb0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710973754; x=1711578554; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1+Z/3nUpgvIwIxJoYaAC7NtXFTWwEviXh+7X9DkaLEc=; b=MyXvVN2eSg3eI2ZgVudhP/fHMX7M7goI8BBdw61pHJqVV+XqE2Br2IvgfBRXZ7qSpR 7unUW0wKc1Fy1xNFBHPFzi/Q8zV+ysPpSGyEr6xYCdNUNnJCmrQavydg+Gam3HWVFNEg Idau364gEFcmodA+rIvOT0cGDuzBrt/+STyY5axhyz4jcx6p037Pg55jzGt1ZoUv+qI3 ErFcJJzcUHix65N6sxCEwk8qsjOJ4hklAdiO4YhEuTmo1uYBBdemPvV1Gn+pfE4UZOzi aNc7wdoUKujfd7R77/n/Dv9daiqA7tP79wNEnTGnoH8ZAOr2EuIXyGpjQjO0CMzaGzQ1 P2tg== X-Gm-Message-State: AOJu0Yze1baddaem6TuTsyG3qKDAj1GUaZrblSD3+0FX0c9jo46jwNwC 4YzUfMdDgbARSyC6Rg1jaSwiO6GJYz/2I1KPNH0VHwMUmCOcgkbfiCUTNaSLj5Q= X-Google-Smtp-Source: AGHT+IEkqWUytLWe0tjl/D/6Ep+kYhBb1f+9srtVC0HjA0VJcMhxFGrcsUuHxZrahNBecNRq3MpMig== X-Received: by 2002:a05:600c:35c9:b0:414:610b:13c3 with SMTP id r9-20020a05600c35c900b00414610b13c3mr5224419wmq.27.1710973754043; Wed, 20 Mar 2024 15:29:14 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id fm22-20020a05600c0c1600b004147266a37dsm543921wmb.30.2024.03.20.15.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:29:13 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 20 Mar 2024 22:28:13 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (python-astroplan): New variable. Change-Id: Ia13998c3ccfaab57a9d0670dbd7b4e1c1b92b57a --- gnu/packages/astronomy.scm | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 7849624540..a898b98515 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1736,6 +1736,86 @@ (define-public python-astropy-iers-data celestial-to-terrestrial coordinate transformations.") (license license:bsd-3))) +(define-public python-astroplan + (package + (name "python-astroplan") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "astroplan" version)) + (sha256 + (base32 "0jrgii0f11ckxvywinr9kcsljxnpnkh7hv5638wxwcb1iyjmx36r")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "astroplan/tests" + "-k" (string-append + ;; Test requiring newer python-pytz + "not test_timezone" + ;; Disable tests requiring remote data. + " and not test_FixedTarget_from_name" + " and not test_altitude_constraint" + " and not test_at_night_basic" + " and not test_caches_shapes" + " and not test_compare_airmass_constraint_and_observer" + " and not test_compare_altitude_constraint_and_observer" + " and not test_docs_example" + " and not test_eclipses" + " and not test_eq_observer" + " and not test_event_observable" + " and not test_galactic_plane_separation" + " and not test_get_skycoord" + " and not test_hash_observer" + " and not test_is_night" + " and not test_local_time_constraint_hawaii_tz" + " and not test_local_time_constraint_utc" + " and not test_moon_illumination" + " and not test_moon_separation" + " and not test_observability_table" + " and not test_observer_lon_lat_el" + " and not test_regression_airmass_141" + " and not test_regression_shapes" + " and not test_sun_separation" + " and not test_tonight") + "--ignore=astroplan/tests/test_scheduling.py") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'prepare-test-environment + (lambda _ + (setenv "HOME" "/tmp") + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (propagated-inputs + (list python-astropy + python-astroquery + python-matplotlib + python-numpy + python-pytz + python-six)) + (native-inputs + (list python-pytest-astropy + python-pytest-mpl + python-setuptools-scm)) + (home-page "https://github.com/astropy/astroplan") + (synopsis "Observation planning package for astronomers") + (description + "This package provides a flexible toolbox for observation planning and +scheduling. When complete, the goal is to be easy for Python beginners and new +observers to to pick up, but powerful enough for observatories preparing nightly +and long-term schedules. + +Features: +@itemize +@item calculate rise/set/meridian transit times, alt/az positions for targets at +observatories anywhere on Earth +@item built-in plotting convenience functions for standard observation planning +plots (airmass, parallactic angle, sky maps) +@item determining observability of sets of targets given an arbitrary set of +constraints (i.e., altitude, airmass, moon separation/illumination, etc.) +@end itemize") + (license license:bsd-3))) + (define-public python-astroquery (package (name "python-astroquery")