From patchwork Sat Apr 29 05:43:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiasoc5 X-Patchwork-Id: 49672 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 5E06F27BBE9; Sat, 29 Apr 2023 06:44:22 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED 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 69B2527BBE2 for ; Sat, 29 Apr 2023 06:44:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psdNM-0007Lh-Eg; Sat, 29 Apr 2023 01:44:04 -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 1psdNL-0007LZ-6i for guix-patches@gnu.org; Sat, 29 Apr 2023 01:44:03 -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 1psdNK-0008DC-Ep for guix-patches@gnu.org; Sat, 29 Apr 2023 01:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psdNK-00080W-5V for guix-patches@gnu.org; Sat, 29 Apr 2023 01:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63165] [PATCH v2] gnu: python-cssutils: Update to 2.6.0. References: <20230429052447.160845-1-kiasoc5@disroot.org> In-Reply-To: <20230429052447.160845-1-kiasoc5@disroot.org> Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 29 Apr 2023 05:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63165 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63165@debbugs.gnu.org Cc: kiasoc5 Received: via spool by 63165-submit@debbugs.gnu.org id=B63165.168274703430759 (code B ref 63165); Sat, 29 Apr 2023 05:44:02 +0000 Received: (at 63165) by debbugs.gnu.org; 29 Apr 2023 05:43:54 +0000 Received: from localhost ([127.0.0.1]:34920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psdNC-000803-61 for submit@debbugs.gnu.org; Sat, 29 Apr 2023 01:43:54 -0400 Received: from knopi.disroot.org ([178.21.23.139]:49478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psdNA-0007zu-Cs for 63165@debbugs.gnu.org; Sat, 29 Apr 2023 01:43:52 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DD1F84031F; Sat, 29 Apr 2023 07:43:50 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KqQtbSEjAQy1; Sat, 29 Apr 2023 07:43:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1682747029; bh=194MnNXhUwun2AO7gXMfzq+cLKQb3CH/838keEWTDik=; h=From:To:Cc:Subject:Date; b=K0uSYzbdPDhIadv1DbuLq7C/Hyvs0x/9QnLCraaVsEahx8lPjmdPibRLGERLFE9BY B7FNICjDs/yV9ZyKvEcoksFv2X1zxgnYijSS4fe8V7Q48XWqlcDF2WMJJc7/SQTlT/ uyMBLz4mgDz9/Re8ADCEcDPinE0vi4ay3w3NEzYVZm1T7yMzZ25sb6CweUtW67t2Hl lzGAbnAxMBzu70jyv62kje+5dFmf8DWdRA12cvwBd3m62A3kli+lMEnx5jdrF3IJn0 ww40LJCP+p+IaSUr350RJtUKVA4EOg+FmvgLGkAs3Se49VTYcz+mMJTFDExI0KK0OD jKhBmJqqDmKSQ== Date: Sat, 29 Apr 2023 01:43:15 -0400 Message-Id: <20230429054314.166114-1-kiasoc5@disroot.org> 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: , Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches X-Patchwork-Original-From: kiasoc5 via Guix-patches via From: kiasoc5 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 Resending second patch with a better commit message. * gnu/packages/python-web.scm (python-cssutils): Update to 2.6.0. [build-system]: Switch to pyproject-build-system. [arguments]: Enable tests. [native-inputs]: Remove unzip; add python-pytest and python-jaraco-test. [homepage]: Update it. --- gnu/packages/python-web.scm | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) base-commit: 4884ee6dd4b1694a4a502dd8058d6c61fa0c0199 prerequisite-patch-id: 81152a28167c5753792b6ac435f46dd43dadcb13 diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d7ad051007..3c34c1c043 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1929,20 +1929,29 @@ (define-public python-openid (define-public python-cssutils (package (name "python-cssutils") - (version "1.0.2") + (version "2.6.0") (source - (origin - (method url-fetch) - (uri (pypi-uri "cssutils" version)) - (sha256 - (base32 - "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52")))) - (build-system python-build-system) - (native-inputs - (list unzip)) ; for unpacking the source + (origin + (method url-fetch) + (uri (pypi-uri "cssutils" version)) + (sha256 + (base32 + "13l1y0xr3fgbl95w3pinb5av5dqk2ip39pih6vgrz47c3hyd5p7p")))) + (build-system pyproject-build-system) (arguments - `(#:tests? #f)) ; tests require python-pbr < 1.7.0 - (home-page "https://cthedot.de/cssutils/") + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest" "-vv" "-k" + ;; disable tests requiring network + (string-append "not test_parseUrl " + "and not encutils " + "and not website.logging"))))))) + (native-inputs + (list python-pytest python-jaraco-test)) + (home-page "https://github.com/jaraco/cssutils") (synopsis "CSS Cascading Style Sheets library for Python") (description