From patchwork Tue May 16 23:23:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 50066 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 CCABE27BBEB; Wed, 17 May 2023 00:26:01 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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 384C827BBE2 for ; Wed, 17 May 2023 00:25:57 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pz42d-0005Qw-LR; Tue, 16 May 2023 19:25: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 1pz42V-0005Lm-F1 for guix-patches@gnu.org; Tue, 16 May 2023 19:25:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pz42V-0002Ru-7M for guix-patches@gnu.org; Tue, 16 May 2023 19:25:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pz42V-0004Iu-2j for guix-patches@gnu.org; Tue, 16 May 2023 19:25:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63542] [PATCH 14/19] gnu: python-astral: Update to 3.2. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 May 2023 23:25:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63542 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63542@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 63542-submit@debbugs.gnu.org id=B63542.168427945016348 (code B ref 63542); Tue, 16 May 2023 23:25:07 +0000 Received: (at 63542) by debbugs.gnu.org; 16 May 2023 23:24:10 +0000 Received: from localhost ([127.0.0.1]:48284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz41Z-0004FV-TZ for submit@debbugs.gnu.org; Tue, 16 May 2023 19:24:10 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:51204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz41T-0004Bq-4m for 63542@debbugs.gnu.org; Tue, 16 May 2023 19:24:03 -0400 Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3090408e09bso20377f8f.2 for <63542@debbugs.gnu.org>; Tue, 16 May 2023 16:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684279437; x=1686871437; 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=HwAwAVMoObiCVWBg2g7beHVBkt8EEJdsOluT36g62JU=; b=aXyL+CGKjcEf7N8vqQpVf7px5JT1OaE6UldglRc0cwZGiImCjSd/tt9w/LIFgEBq7a S2fYmtmZLoVivzKDIbQF0+NDcNKJErbxLFnx0ZNoVXDFEr7KK/O4gKPrTb/vTeCrnJmL NIlRscnPvOyv3QRBt6GrNjEJXbiq1Rz0kSe27tn/+alH3LzJCbKibAS3OYfbY7BPLrEB XPsOEdf/ytjYBRcyNZ/6kLGKWOI1a8zOqrOA0ep38Kkgh4khR3di26vdRRgO2ITgv6mX rucW0XYOA+RyQwSLiv7Vs0F84MSsI3YSq96TO7/IOVccOafPE+UObu0pz+ufevGIXFJy OdZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684279437; x=1686871437; 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=HwAwAVMoObiCVWBg2g7beHVBkt8EEJdsOluT36g62JU=; b=Nx6Zn8NubY8anfKih5sXFMrh7kAXVOAOlmLaUkI5Dqb/Ki7CeLh+nl5yQYP6+9vjsj 8WNrNUYF5Z+k+a7tiecjcJjZd4TAvw/pcvYD4FC2WT/6+p0JZPMIbZT50qk8/aWIfeHc KSmVyID4bX/F/L30rrwQMezmsSSjEFST2EYTh47jwqLON4ee+TT8IYEa9nygoPKloIbi 6v/qGSAmwJtzTWgC2M/KQ+MdeESRv7n4JL2nI1T2Q1YgdizLPE+SbAhO5HWHfv5UDsGi p70RKnlLo7qEXepgdwpFE/hd7Sh+k5qm4qBXC4KnqFFqbEw8rxeZJn4h72e0cz1VIDSk 93Vg== X-Gm-Message-State: AC+VfDzQtb1/F5W3IQF+SR91lCo/b+hOc1Id83+b7bYYOXLhrNZ992JS Anx02O2bzF22U+txQG7/TvKUdqA4784= X-Google-Smtp-Source: ACHHUZ51G1vKiKNoJmyUe80oxzcQQWM1ITCYlVfr54DDfGY92+RttTCIwGe30BGVKLmii0IPF7BPRg== X-Received: by 2002:a5d:594e:0:b0:307:8691:1eae with SMTP id e14-20020a5d594e000000b0030786911eaemr23110647wri.20.1684279437471; Tue, 16 May 2023 16:23:57 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id n10-20020a5d67ca000000b0030796e103a1sm949609wrw.5.2023.05.16.16.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 16:23:57 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 17 May 2023 00:23:43 +0100 Message-Id: X-Mailer: git-send-email 2.39.2 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-astral): Update to 3.2. [build-system]: Shift to pyproject-build-system. [arguments]: Use Gexps. Do not modify staged phases, use #:test-flags instead and partly enable tests (128 of 334). [native-inputs]: Add python-poetry-core. --- gnu/packages/astronomy.scm | 70 ++++++++++++++++++++++++++++++++------ 1 file changed, 59 insertions(+), 11 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 058d3a6dcc..ab539efcfe 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1939,24 +1939,72 @@ (define-public python-sunpy (define-public python-astral (package (name "python-astral") - (version "2.2") + (version "3.2") (source (origin (method url-fetch) (uri (pypi-uri "astral" version)) (sha256 - (base32 "1gkggdibccmdy9glymw3kbrkzm6svvsg0lk56hhy92y4smkrj7g4")))) - (build-system python-build-system) + (base32 "121xag65rmv6pszbi3d206yz3jfwmpkf0jxjrxrd2scy5r0knz4v")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) - (when tests? - (add-installed-pythonpath inputs outputs) - (invoke "python" "-m" "pytest"))))))) + (list + #:test-flags + ;; XXX: Disable tests which require newer version of python-pytz. + ;; No time zone found with key Pacific/Auckland + #~(list "-k" (string-append + "not test_TimezoneLookup" + " and not test_Sun" + " and not test_Dawn" + " and not test_Sunrise" + " and not test_SolarNoon" + " and not test_Dusk" + " and not test_Sunset" + " and not test_SolarElevation" + " and not test_SolarAzimuth" + " and not test_TimeAtAltitude" + " and not test_MoonNoDate" + " and not test_lookup" + " and not test_tzinfo" + " and not test_australia" + " and not test_adak" + " and not test_australia" + " and not test_Elevation_NonNaive" + " and not test_Wellington" + " and not test_Sun_Local_tzinfo[day0-dawn0]" + " and not test_Sun_Local_tzinfo[day1-dawn1]" + " and not test_Sun_Local_tzinfo[day2-dawn2]" + " and not test_Sun_Local_tzinfo[day3-dawn3]" + " and not test_Sun_Local_tzinfo[day4-dawn4]" + " and not test_Sun_Local_str[day0-dawn0]" + " and not test_Sun_Local_str[day1-dawn1]" + " and not test_Sun_Local_str[day2-dawn2]" + " and not test_Sun_Local_str[day3-dawn3]" + " and not test_Sun_Local_str[day4-dawn4]" + " and not test_SolarZenith_London[dt0-102.6]" + " and not test_SolarZenith_London[dt1-93.3]" + " and not test_SolarZenith_London[dt2-87.8]" + " and not test_SolarZenith_London[dt3-46]" + " and not test_SolarZenith_London[dt4-71]" + " and not test_SolarZenith_Riyadh[dt0-32]" + " and not test_SolarZenith_Riyadh[dt1-126]" + " and not test_moonrise_utc[date_0-risetime0]" + " and not test_moonrise_utc[date_1-risetime1]" + " and not test_moonrise_utc[date_2-risetime2]" + " and not test_moonrise_wellington[date_0-risetime0]" + " and not test_moonrise_wellington[date_1-risetime1]" + " and not test_moonset_wellington[date_0-settime0]" + " and not test_moonset_wellington[date_1-settime1]")) + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'prepare-test-environment + (lambda _ + (setenv "HOME" "/tmp")))))) (native-inputs - (list python-freezegun python-setuptools-scm)) + (list python-freezegun + python-poetry-core + python-pytest + python-setuptools-scm)) (propagated-inputs (list python-dataclasses python-pytest python-pytz)) (home-page "https://github.com/sffjunkie/astral")