mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
90fe7f2d25
commit
99f03c1533
1 changed files with 25 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue