From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WHrNMnaHbmRWbwEASxT56A (envelope-from ) for ; Wed, 24 May 2023 23:53:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SJ/wMXaHbmQxWgEAG6o9tA (envelope-from ) for ; Wed, 24 May 2023 23:53:58 +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 8E1281A0EE for ; Wed, 24 May 2023 23:53:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1wPt-0006iB-2B; Wed, 24 May 2023 17:53:09 -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 1q1wPr-0006gA-JU for guix-patches@gnu.org; Wed, 24 May 2023 17:53: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 1q1wPr-0005Ok-BM for guix-patches@gnu.org; Wed, 24 May 2023 17:53:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1wPr-0002Uy-5L for guix-patches@gnu.org; Wed, 24 May 2023 17:53:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63542] [PATCH v2 14/20] gnu: python-astral: Update to 3.2. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 May 2023 21:53: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.16849651439429 (code B ref 63542); Wed, 24 May 2023 21:53:07 +0000 Received: (at 63542) by debbugs.gnu.org; 24 May 2023 21:52:23 +0000 Received: from localhost ([127.0.0.1]:45343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1wP8-0002Rz-PK for submit@debbugs.gnu.org; Wed, 24 May 2023 17:52:23 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:49504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1wOw-0002Oc-2U for 63542@debbugs.gnu.org; Wed, 24 May 2023 17:52:10 -0400 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-30a892c45c4so926998f8f.3 for <63542@debbugs.gnu.org>; Wed, 24 May 2023 14:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684965124; x=1687557124; 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=b4OYm3OyAz5Mf+MjAU6f2IX5Uunz003RZdOo9WZeAnQ=; b=TbqIwN+P3DDMsvZjRcKBiArdA6rRJ9rlMnI5W2TAoxaQehFnN3KqY3pPAc61O1iT2w jUZhNmThXMTfTh9OmJ0mC/m6SyeO60T9fD70ZRB77aH4chHWRh4clRwbVq8OK5ykVTpi uGGfHOGsJaUFQ03Ilu5LhKcM9XGEUEO1tDPRXzUO2Y29O95zGOTZmmh7CXEBsXi411mE gq0kbkr09INpqbRfdpzty0nZlfeKh5HOJFv5Wx5iE4C3vLKKv6Wbldq/9SUv3P0McZVJ +5of74LwHaZhFUFa3Kg6i8N/7fSZNEV0RNtXnKoxb3xWTTa8bNQ7aanhPL9ExRIs5LUX rwOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684965124; x=1687557124; 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=b4OYm3OyAz5Mf+MjAU6f2IX5Uunz003RZdOo9WZeAnQ=; b=LwZ8sA7K0k//ytiypmKHdkeJV5HGNmoFqtbvykA/GsQS+OnipBJSRRXbGW+VT8L+s1 sdydl3s8Bqep7O9oevk3N+3IMrwLIpZr5MOo4C8eltm6TmsLDWtuDdjUrafU2asnvhng YRUWrvcU1t8Dcy/mJzaA7plKVMI/4K28J3xICj8MDk6+jHsXHPLscAFAgs+rDY7FTmVF 2ncl2uw3uxR/uycPMQVRUKkTI0p5bWpMRDg3fMHcJYOhQ2K6ctKCYo92fLz+tquOEoIO h3aeV6qYSFFmU+Plz9BM08L0M/bNqzD+ZNMlyKSFjuZyDP6EgYggz1cAcqqznb1aYSWd F01w== X-Gm-Message-State: AC+VfDxLNsdNnBe3Zf4shE6I6vhN+fKDqpFksFyjrJNT/qQ8KgG0g+7z piq/xGDDlOEg99JerLPExHUYgz57xec= X-Google-Smtp-Source: ACHHUZ5MBdNsGbF9TcwUiyd85OFtxTTHfvyT/huwbDgyTdnknDtCrT7KxOEhWDW69OuaaN5E91C2qQ== X-Received: by 2002:a05:6000:137a:b0:306:2aa0:ce81 with SMTP id q26-20020a056000137a00b003062aa0ce81mr746595wrz.30.1684965124433; Wed, 24 May 2023 14:52:04 -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 c13-20020a056000104d00b0030632833e74sm15609806wrx.11.2023.05.24.14.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 14:52:04 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 24 May 2023 22:51:48 +0100 Message-Id: <185fa2ab4f22978c998bba45550981ed6677940c.1684964119.git.sharlatanus@gmail.com> 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=1684965238; a=rsa-sha256; cv=none; b=Ux9HZkDDu3vGZ2qyQr1qZkjktSewA73ag5OyZTtNs22in5uTM3vdXuLQu4VqicPEywdUkm bud3ZeNr9Ort8k5wtlBgHlsMQeV7DFyBUZfETRZ55IJqxI1wEiZeBndmnD4OkAL2SkwfQ8 0JJjyUAKNxWMovBLCplz6iAcxz5114fUlN4Pk2q8Ysr8c5SP4aZ3dFj9ZVUdDpz+zDmyMg pu4qlA7vW1bd1ZpiNc0er35ejnDgpGc0YhHPCgnHgKfcvLXuIlOCZqF68rg4DOlV8nwKfd UCvIQl3VUV7KTVolGUCVwih/9UjrORr0hJ5vwMRMo99L1d+jg49HVsT3Z9Ra0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=TbqIwN+P; 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=1684965238; 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=b4OYm3OyAz5Mf+MjAU6f2IX5Uunz003RZdOo9WZeAnQ=; b=JLD2fGtoFkpSLDnw8MzVNXf+Rb7pwrgSKS30mExtgDFl0T8eyZDCwu99RWsNl+XVcURI+i rf2A4l5ckoxuFIEsyGH4LyDmuW90DPqm2hei7L9BDKKtgRgpu9pv9iiELUpqPPvk+DhNVj trYbYQfcHcbLQkvsY1YsqvpLWHWXhMQ+FsMmII1f0rfLAdFbyyzJmxtn/W8rVrcrz4Ev5b kQ8FmtrdDpI1zX6Q05PM3tJGWHZ6GkfIes7LJmRf6DQbKk2QCV2JBsTo0s2pBk8xwlzFAh Opf5R3uExBe1jTRM7OMSSLy6iVse9s9zjnlmp1RZmwzdJjcfaMWdE+tJuRdDww== X-Migadu-Spam-Score: 0.89 X-Spam-Score: 0.89 X-Migadu-Queue-Id: 8E1281A0EE 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=TbqIwN+P; 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: v4VMrTr7R0qV * 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 | 53 ++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 11 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 011e1374fc..7883919203 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1938,24 +1938,55 @@ (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" + " and not test_Sun_Local_str" + " and not test_SolarZenith_London" + " and not test_SolarZenith_Riyadh" + " and not test_moonrise_utc" + " and not test_moonrise_wellington" + " and not test_moonset_wellington")) + #: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