summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-01-26 00:17:08 +0000
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:09 +0200
commitf36dfb732ba9e266960df44fb8e96087f5234371 (patch)
treee2d57edda91940ef51d349f2bb30bdf118c34976 /gnu/packages/python-xyz.scm
parentf372684b1486496a641601b44059f708bfb70f6c (diff)
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
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm36
1 files changed, 12 insertions, 24 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 65a5ee52e8..c2d9e99a70 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -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