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
This commit is contained in:
Sharlatan Hellseher 2025-05-09 16:16:20 +01:00
parent 90fe7f2d25
commit 99f03c1533
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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