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
This commit is contained in:
Sharlatan Hellseher 2025-01-26 00:17:08 +00:00 committed by Andreas Enge
parent f372684b14
commit f36dfb732b
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -31965,37 +31965,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