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)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "cachy" version))
|
(uri (pypi-uri "cachy" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
|
||||||
"1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
;; Make it compatible with python-flexmock 0.12.
|
;; Make it compatible with python-flexmock 0.12.
|
||||||
(substitute* (find-files "tests" "\\.py$")
|
(substitute* (find-files "tests" "\\.py$")
|
||||||
(("from flexmock import flexmock, flexmock_teardown")
|
(("from flexmock import flexmock, flexmock_teardown")
|
||||||
"from flexmock import flexmock; from flexmock._api import flexmock_teardown"))
|
(string-append "from flexmock import flexmock\n"
|
||||||
|
"from flexmock._api import flexmock_teardown")))
|
||||||
(invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
|
(invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
|
||||||
"pytest"))))))
|
"pytest")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list memcached python-fakeredis python-flexmock python-pifpaf
|
(list memcached
|
||||||
python-pytest))
|
python-fakeredis
|
||||||
|
python-flexmock
|
||||||
|
python-pifpaf
|
||||||
|
python-pytest
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-memcached python-msgpack python-redis))
|
(list python-memcached
|
||||||
|
python-msgpack
|
||||||
|
python-redis))
|
||||||
(home-page "https://github.com/sdispater/cachy")
|
(home-page "https://github.com/sdispater/cachy")
|
||||||
(synopsis "Simple yet effective caching library")
|
(synopsis "Simple yet effective caching library")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue