unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: kiasoc5 via Guix-patches via <guix-patches@gnu.org>
To: 63165@debbugs.gnu.org
Cc: kiasoc5 <kiasoc5@disroot.org>
Subject: [bug#63165] [PATCH v2] gnu: python-cssutils: Update to 2.6.0.
Date: Sat, 29 Apr 2023 01:43:15 -0400	[thread overview]
Message-ID: <20230429054314.166114-1-kiasoc5@disroot.org> (raw)
In-Reply-To: <20230429052447.160845-1-kiasoc5@disroot.org>

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(-)

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

base-commit: 4884ee6dd4b1694a4a502dd8058d6c61fa0c0199
prerequisite-patch-id: 81152a28167c5753792b6ac435f46dd43dadcb13
-- 
2.40.1





  parent reply	other threads:[~2023-04-29  5:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-29  5:24 [bug#63165] [PATCH 0/2] Add python-jaraco-test, update python-cssutils kiasoc5 via Guix-patches via
2023-04-29  5:31 ` [bug#63165] [PATCH 1/2] gnu: Add python-jaraco-test kiasoc5 via Guix-patches via
2023-04-29  5:31   ` [bug#63165] [PATCH 2/2] gnu: python-cssutils: Update to 2.6.0 kiasoc5 via Guix-patches via
2023-04-29  5:43 ` kiasoc5 via Guix-patches via [this message]
2023-05-19 14:46 ` bug#63165: [PATCH 0/2] Add python-jaraco-test, update python-cssutils Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230429054314.166114-1-kiasoc5@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=63165@debbugs.gnu.org \
    --cc=kiasoc5@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).