From patchwork Wed May 24 21:51:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 50299 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 4C54127BBE2; Wed, 24 May 2023 22:54:00 +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=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 9026327BBE9 for ; Wed, 24 May 2023 22:53:58 +0100 (BST) 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 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 | 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")