From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CNBhFgURZGTrpgAASxT56A (envelope-from ) for ; Wed, 17 May 2023 01:25:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YC1XFgURZGQ3KAAAauVa8A (envelope-from ) for ; Wed, 17 May 2023 01:25:57 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2703886C1 for ; Wed, 17 May 2023 01:25:57 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684279557; a=rsa-sha256; cv=none; b=kSeSGMogFKKYR3G8/jVRUY+aEhEtjfI9n8dqx7vyQXHVnd+l8qpvAihHKyx1awY8EMyX6j k2hmrguRf3aaLztBhN4eioobkFQku0j52y1fMVTNMvSLvjKo3/cCMgS9l3Eyvw8lwufd+Z 5XtnR5DM+on3cfsIIdhslonhu/+t+DBGWbwJOlkDvmAKZ/0F+oAZfaCtXrJiuW5M2fsl4+ AONF2GQVa+OtIzvrgqE3HAW5Im5ZhWUus/B9nOXV0iPRUEXO/jw3qlwGm8Li3Elh/BZ/BE Q/TLKxfpjpYf38f/8DoD3KR9gUccmwtb6rp/y63MNF6RQFyN3uX+OBezo/qvdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=aXyL+CGK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684279557; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HwAwAVMoObiCVWBg2g7beHVBkt8EEJdsOluT36g62JU=; b=auYvRq+DvJLJ7J6kFVQtGN7mCAr8GO+V5I+XWS4JRukK6Be+nJ/rlI8in4+kQ2kid51syP nFZXtELqr/9P2YB2I0Xd/sZAuhzRufvA6Ed/X4Q+gBUhIYg+6Mm9BS/53MHqum8keSDUgs UTkCjlv1h5NUyYppKcGLMVPBIMmZFaxMYQagVrELQAMwr5mT5SUySvC+Wmo+3fqpHaEqf8 36Ykl09KLMqCK8Kz1DVCIoEPdYcSIBjWuoK4aBbPKAtTHEA13N3XzFSb9b6GvC2W7QtwpB brHNBJh6kqr+nBY8WD9/WgQLJU0t7jVAUMiBtC2LQo8zvfkzrwUrfPyfZOl2+A== X-Migadu-Spam-Score: 1.69 X-Spam-Score: 1.69 X-Migadu-Queue-Id: 2703886C1 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=aXyL+CGK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: v+9gh+VS9YEr * 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") -- 2.39.2