[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: Add python-cached-property.
From: |
guix-commits |
Subject: |
02/10: gnu: Add python-cached-property. |
Date: |
Sat, 13 Jul 2019 09:14:17 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e308b4f06a06c38954b1c07c6a83622bb01a0326
Author: Jacob MacDonald <address@hidden>
Date: Thu Jul 11 15:43:31 2019 -0500
gnu: Add python-cached-property.
* gnu/packages/python-xyz.scm (python-cached-property): New variable.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 29aebdf..b078786 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -63,6 +63,7 @@
;;; Copyright © 2019 Guillaume Le Vaillant <address@hidden>
;;; Copyright © 2019 Alex Griffin <address@hidden>
;;; Copyright © 2019 Pierre Langlois <address@hidden>
+;;; Copyright © 2019 Jacob MacDonald <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -15954,3 +15955,39 @@ Complete support for Berkeley DB Base Replication.
Support for RPC.")
types for further processing. It is primarily intended for batch jobs and
one-off scripts.")
(license license:expat)))
+
+(define-public python-cached-property
+ (package
+ (name "python-cached-property")
+ (version "1.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cached-property" version))
+ (sha256
+ (base32
+ "010m1bl380l2r3vwq24r5v14l6gwvgm9v0mqqjkjss552jgsa5wj"))))
+ (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)))))
+ (native-inputs
+ `(("python-freezegun" ,python-freezegun)))
+ (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.")
+ (license license:bsd-3)))
- branch master updated (c1b8732 -> f24276d), guix-commits, 2019/07/13
- 03/10: gnu: Add python-urllib3-1.24., guix-commits, 2019/07/13
- 01/10: gnu: rush: Update to 2.1., guix-commits, 2019/07/13
- 04/10: gnu: Add python-idna-2.7., guix-commits, 2019/07/13
- 02/10: gnu: Add python-cached-property.,
guix-commits <=
- 05/10: gnu: Add python-requests-2.20., guix-commits, 2019/07/13
- 06/10: gnu: python-texttable: Update to 0.9.1., guix-commits, 2019/07/13
- 07/10: gnu: python-docker-pycreds: Update to 0.4.0., guix-commits, 2019/07/13
- 10/10: gnu: docker-compose: Update to 1.24.1., guix-commits, 2019/07/13
- 09/10: gnu: python-docker-py: Update to 3.7.3., guix-commits, 2019/07/13
- 08/10: gnu: python-dockerpty: Update to 0.4.1., guix-commits, 2019/07/13