sharlatan pushed a commit to branch master
in repository guix.

commit 99f03c1533597f1c7d64860e874876f9e29490d0
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Fri May 9 16:16:20 2025 +0100

    gnu: python-cachy: Refresh package style.
    
    * gnu/packages/python-xyz.scm (python-cachy): Use G-expressions.
    [build-system]: Switch to pyproject.
    [native-inputs]: Add python-setuptools and python-wheel.
    
    Change-Id: Ibf71c9000b84be357e71eb3d4e3864dc26f01522
---
 gnu/packages/python-xyz.scm | 43 ++++++++++++++++++++++++++-----------------
 1 file changed, 26 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ac08e90a16..fd0846915e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23057,25 +23057,34 @@ classes can also be supported by manually registering 
converters.")
        (method url-fetch)
        (uri (pypi-uri "cachy" version))
        (sha256
-        (base32
-         "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
-    (build-system python-build-system)
+        (base32 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda _
-             ;; Make it compatible with python-flexmock 0.12.
-             (substitute* (find-files "tests" "\\.py$")
-              (("from flexmock import flexmock, flexmock_teardown")
-               "from flexmock import flexmock; from flexmock._api import 
flexmock_teardown"))
-             (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
-                     "pytest"))))))
-    (native-inputs
-     (list memcached python-fakeredis python-flexmock python-pifpaf
-           python-pytest))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                ;; Make it compatible with python-flexmock 0.12.
+                (substitute* (find-files "tests" "\\.py$")
+                  (("from flexmock import flexmock, flexmock_teardown")
+                   (string-append "from flexmock import flexmock\n"
+                                  "from flexmock._api import 
flexmock_teardown")))
+                (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
+                        "pytest")))))))
+    (native-inputs
+     (list memcached
+           python-fakeredis
+           python-flexmock
+           python-pifpaf
+           python-pytest
+           python-setuptools
+           python-wheel))
     (propagated-inputs
-     (list python-memcached python-msgpack python-redis))
+     (list python-memcached
+           python-msgpack
+           python-redis))
     (home-page "https://github.com/sdispater/cachy";)
     (synopsis "Simple yet effective caching library")
     (description

Reply via email to