summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-05-09 16:16:20 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-09 22:34:59 +0100
commit99f03c1533597f1c7d64860e874876f9e29490d0 (patch)
tree28f50cd2b886a60be18bd1508c2d55ab6cf9aa2d
parent90fe7f2d25e0d97272f4a0988ddd8f400ff2b9c4 (diff)
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
-rw-r--r--gnu/packages/python-xyz.scm41
1 files changed, 25 insertions, 16 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"))))))
+ (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))
+ (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