andreas pushed a commit to branch python-team in repository guix. commit 6edcd5717664d486b13cca1ad3f5a4c619d2b5dc Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Sun Jan 26 00:17:08 2025 +0000
gnu: python-cached-property: Update to 2.0.1. * gnu/packages/python-xyz.scm (python-cached-property): Update to 2.0.1. Fix build, improve style. [source] <uri>: Adjust it as PyPI archive name has been changed. [build-system]: Swap to pyproject-build-system. [arguments] <phases>: Remove 'disable-broen-test, issue is resolved. [native-inputs]: Add python-pytest, python-setuptools, and python-wheel. Change-Id: Ib929c70387acd885d2f5f3db6b2ca8e7e9e51433 --- gnu/packages/python-xyz.scm | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b90c92f38d..09dbe1d14a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31954,37 +31954,25 @@ one-off scripts.") (define-public python-cached-property (package (name "python-cached-property") - (version "1.5.2") + (version "2.0.1") (source (origin (method url-fetch) - (uri (pypi-uri "cached-property" version)) + (uri (pypi-uri "cached_property" version)) (sha256 - (base32 - "0c51i6yzg6dlq6zhk4c6nv33mg8gv05kkan36k9b5jzf71c7b9cz")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - ;; https://github.com/pydanny/cached-property/issues/131 - ;; recent versions of freezegun break one test - (add-after 'unpack 'disable-broken-test - (lambda _ - (substitute* "tests/test_cached_property.py" - (("def test_threads_ttl_expiry\\(self\\)" m) - (string-append "@unittest.skip(\"Disabled by Guix\")\n" - " " m))) - #t))))) + (base32 "0hbni4q15n8wspdj48j6xvg977pgm1r5wwjq3x7hxvp30mqn2ka8")))) + (build-system pyproject-build-system) (native-inputs - (list python-freezegun)) - (home-page - "https://github.com/pydanny/cached-property") - (synopsis - "Decorator for caching properties in classes") + (list python-freezegun + python-pytest + python-setuptools + python-wheel)) + (home-page "https://github.com/pydanny/cached-property") + (synopsis "Decorator for caching properties in classes") (description "This package provides a decorator which makes caching -time-or-computationally-expensive properties quick and easy and works in Python -2 or 3.") +time-or-computationally-expensive properties quick and easy and works in +Python 2 or 3.") (license license:bsd-3))) (define-public python-folium