From: Jacob MacDonald <jaccarmac@gmail.com>
To: 36608@debbugs.gnu.org
Subject: [bug#36608] [PATCH 1/9] Update docker-compose to 1.24.1.
Date: Thu, 11 Jul 2019 15:50:41 -0500 [thread overview]
Message-ID: <CACy6W0CVLcaGbZLC+5MwF0ZTxYL5+BXnZwOgYyjc5Y3hKjUzQg@mail.gmail.com> (raw)
In-Reply-To: <CACy6W0C=ZWf-y1Uje7ox9gxOJgn1GXr4UojA3TLN=GfOpem5oQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 0001-gnu-Add-python-cached-property.patch --]
[-- Type: text/x-patch, Size: 2093 bytes --]
From 867b96a4dc461b0496a3ffbf8af7f97892f01cde Mon Sep 17 00:00:00 2001
From: Jacob MacDonald <jaccarmac@gmail.com>
Date: Thu, 11 Jul 2019 15:43:31 -0500
Subject: [PATCH 1/9] gnu: Add python-cached-property.
* gnu/packages/python-xyz.scm (python-cached-property): New variable.
---
gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 49d5126e02..2dee18292b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15923,3 +15923,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)))
--
2.22.0
next prev parent reply other threads:[~2019-07-11 20:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-11 20:48 [bug#36608] [PATCH] Update docker-compose to 1.24.1 Jacob MacDonald
2019-07-11 20:50 ` Jacob MacDonald [this message]
2019-07-11 20:51 ` [bug#36608] [PATCH 2/9] " Jacob MacDonald
2019-07-11 20:51 ` [bug#36608] [PATCH 3/9] " Jacob MacDonald
2019-07-11 20:51 ` [bug#36608] [PATCH 4/9] " Jacob MacDonald
2019-07-11 20:51 ` [bug#36608] [PATCH 5/9] " Jacob MacDonald
2019-07-11 20:51 ` [bug#36608] [PATCH 6/9] " Jacob MacDonald
2019-07-11 20:51 ` [bug#36608] [PATCH 7/9] " Jacob MacDonald
2019-07-11 20:52 ` [bug#36608] [PATCH 8/9] " Jacob MacDonald
2019-07-13 13:16 ` bug#36608: " Ludovic Courtès
2019-07-11 20:52 ` [bug#36608] [PATCH 9/9] " Jacob MacDonald
2019-07-13 13:17 ` [bug#36608] [PATCH] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACy6W0CVLcaGbZLC+5MwF0ZTxYL5+BXnZwOgYyjc5Y3hKjUzQg@mail.gmail.com \
--to=jaccarmac@gmail.com \
--cc=36608@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).