From patchwork Fri Feb 21 21:49:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 38954 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 A2F0527BBEC; Fri, 21 Feb 2025 21:54:49 +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=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,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 1E38F27BBE2 for ; Fri, 21 Feb 2025 21:54:49 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tlayS-0003rl-2D; Fri, 21 Feb 2025 16:54:20 -0500 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 1tlayO-0003oO-Pj for guix-patches@gnu.org; Fri, 21 Feb 2025 16:54:16 -0500 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 1tlayO-0000Nk-H2 for guix-patches@gnu.org; Fri, 21 Feb 2025 16:54:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=/4Fo5cjHS0zRHcz+4Irf1zM6eTYSVTUpPMJTwueHY80=; b=AIiSizRZqijBgd24uofHMsV3r+DrLA0NHHCgI6+tomXQyW45GnyS/+D5xEvBZhNn3wutVyFR6EDQ3VbHNJKcuposA49jXWgISl6FIhasbskaZkQpR4YeEwOz4ciZVHoZKZkeji/kfrc80aeXzx5JbPXlDtuLeIzrBVqjj1Lbtt+gLyVcGeW57tHIaIit83Sp1P1DzGbLTZM10dFcK7PgaL+0MCgycRBSU8KIabDtGM22riFMY09KM+2HNr5BU1QkBMe1wFU6Mu/f/gkGTWcoKntjd0I+GLD9/EbvUNJ7fMbU8heAG6oCKcBvGn5Q2Ri76unWDRB25WiGyhOV5l1pXw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tlayO-0004sS-A7; Fri, 21 Feb 2025 16:54:16 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76480] [PATCH 45/51] gnu: Add python-sndata. 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: Fri, 21 Feb 2025 21:54:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76480 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76480@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 76480-submit@debbugs.gnu.org id=B76480.174017481418298 (code B ref 76480); Fri, 21 Feb 2025 21:54:16 +0000 Received: (at 76480) by debbugs.gnu.org; 21 Feb 2025 21:53:34 +0000 Received: from localhost ([127.0.0.1]:38710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlaxh-0004ky-Ks for submit@debbugs.gnu.org; Fri, 21 Feb 2025 16:53:34 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:53712) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tlauz-0004HH-JW for 76480@debbugs.gnu.org; Fri, 21 Feb 2025 16:50:54 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-439a4fc2d65so23802835e9.3 for <76480@debbugs.gnu.org>; Fri, 21 Feb 2025 13:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740174639; x=1740779439; 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=/4Fo5cjHS0zRHcz+4Irf1zM6eTYSVTUpPMJTwueHY80=; b=mA+CEB/SUkEbHeLEw/k9CrVaSPvp9ZtGVlcpkLuhEZwJqA4Di8j1CQ9xeq3fsmzJ0q GqIeBhli5obj/Us6NRjjNIQrda5wCKc9k7D2xHWCcuD5TH8TSvsSKgh4iIIvMs27uu3Q rEeYfqZtz9cg0+yVcXoRshoCHXqxtswZ+3hNINyBaX6g3OLnnn2PmxPhyyfVobBsxOXc WXaPr895eLHobkj2WaSsAZ2eUwqhCUCoHx4SN42HE8tri8WV+hIs5Ex6Zc3cdXG1n+hw QSaUXYuZOvhae2SboyvDDrzQH4L8fBMYNbXwTwDV+j6D+CddCVykkVS9VWrb6YOQpI08 bicg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740174639; x=1740779439; 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=/4Fo5cjHS0zRHcz+4Irf1zM6eTYSVTUpPMJTwueHY80=; b=A3SNEpWbMSDQri7Jms4iqYnIJNHkQQRuV+nIQaALXaVMD1e8Cdi90qFkOl4iQ+9Ab0 1Ti5Y59zyCgIxWw+hgiKSzh/N4swPoGUGSXz+j1csnyKLquJIb5aDQhgzi6LP63o+eV1 mpW208Q2RdhBz+r32eyyAhU01TxOJz5EsZocb9jnTkj/GNUdY9iL+DmfpU1uYeuwgndb QVZ+ezB+E8UvovRluYtfI1un5VZUWLJD4iAS/OpM1BwHW5OHveyhVJn0Mzt/MgYYV/c0 akmeDhySEdatd0rQu2a6d8ZuxQLTSEmkeq+0pp7W50ApPv6dJVnolmgO0O4upb9QPwNk LjmQ== X-Gm-Message-State: AOJu0YwoWgiNYk2UipqHR4HuNw9swYSCMVXEqViiZaJtp/8ngXt9q0+W rB9qZz3kL1UMxFRK3PRsqs5/39D6RcpKemvQPh7PPIstD/fqePdndMakGg== X-Gm-Gg: ASbGnctN8LcwU+7ekP5p4sx64rmzF/+heqopw4zXxk6rkdUjxcOmZkNnE7s7hxW08vL AgUCrdZg5uuMWC4mSorMb6TRpF8yAhMS6DHsYkE5r3Cc8IFODv7Qjx7xqiZvQSKeVx1Ao6xeIW1 HzYPDOi9zRTn75Ir5g3/hkjEhY+Ngs6SMu2orFvL/P0pKG0r+q72UpWCWZ0+zr4cOSQfhgfkh8C l4LDB95KA8YLab7IbHUchcu7rVgSZOhjkwgxm/TbzxJVevCYb+zLQlfMFEpcKHM1kGBGIEpm30F Dgg0JVGpWwyIsnSnVy/jvBn6vJkBKPdOH0aTcZbdIcuT2uYJEKsV+nvjIRCM5wCtJveerPwG1rU TUK8e6j0R1b+BVyB0Jg== X-Google-Smtp-Source: AGHT+IF/mNKuk0QRabyRMjsCy60s+0rmeldMIgrQ/uBp22dqXxS3cyGLMus5+30lRx9kYDncifJ6aQ== X-Received: by 2002:a05:600c:4f41:b0:439:8b05:66a6 with SMTP id 5b1f17b1804b1-439ae214327mr41583845e9.22.1740174639089; Fri, 21 Feb 2025 13:50:39 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4399bea8577sm74601855e9.0.2025.02.21.13.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 13:50:38 -0800 (PST) From: Sharlatan Hellseher Date: Fri, 21 Feb 2025 21:49:39 +0000 Message-ID: <689a28fa245baa14ad3fab0f2835635287f2f3df.1740173176.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.47.1 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-sndata): New variable. Change-Id: Ie56d1617a7c4f331ccf277bd71d50cd941b97921 --- gnu/packages/astronomy.scm | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index ce8a1291c4c..f2d21ab3404 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -3563,6 +3563,71 @@ (define-public python-sncosmo to make such analysis both as flexible and clear as possible.") (license license:bsd-3))) +(define-public python-sndata + (package + (name "python-sndata") + (version "1.3.0") + (source + (origin + (method git-fetch) ; no tests data in the PyPI tarball + (uri (git-reference + (url "https://github.com/sncosmo/SNData") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1jci6ry2b8jylda4v7zhl857pifslpnslrbj2207nz4hw43nz3mp")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "-k" (string-join + ;; Network access is required for these tests. + (list "not test_duplicate_obj_id_strings" + "test_obj_id_as_str" + "test_coordinates_0_0" + "test_bad_table_id_err" + "test_cache_not_mutated" + "test_comments_not_in_metadata" + "test_get_zp" + "test_id_joining" + "test_ids_are_sorted" + "test_jd_time_format" + "test_join_id_string_error" + "test_minimal_metadata_keys" + "test_no_duplicate_aliases" + "test_no_empty_data_tables" + "test_no_empty_ids" + "test_paper_tables_are_parsed" + "test_sncosmo_registered_band_names" + "test_standard_column_names" + "test_unique_ids") + " and not ")))) + (native-inputs + (list nss-certs-for-test + python-cython-3 + python-poetry-core + python-pytest)) + (propagated-inputs + (list python-astropy + python-beautifulsoup4 + python-numpy + python-pandas + python-pytz + python-pyyaml + python-requests + python-sncosmo + python-tqdm)) + (home-page "https://sndata.readthedocs.io/en/latest/") + (synopsis "Interface for data published by various supernova surveys") + (description + "SNData provides an access to data releases published by a variety of +supernova (SN) surveys. It is designed to support the development of scalable +analysis pipelines that translate with minimal effort between and across data +sets. A summary of accessible data is provided below. Access to additional +surveys is added upon request or as needed for individual research projects +undertaken by the developers.") + (license license:gpl3+))) + (define-public python-so-noise-models (let ((commit "fac881eb5ee012673d8994443caa3c6ad7fac2b6") (revision "0"))