[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/15: gnu: Add python-pylru.
From: |
guix-commits |
Subject: |
02/15: gnu: Add python-pylru. |
Date: |
Tue, 11 Jan 2022 12:14:09 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit 5b43b55846ba8234e48d67ef7a0f38ee8086606a
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Mon Dec 27 23:30:25 2021 +0000
gnu: Add python-pylru.
* gnu/packages/python-xyz.scm (python-pylru): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a1f33559ed..a0cf06e132 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11309,6 +11309,35 @@ signature of a file or buffer.")
provides a collection of cache libraries in the same API interface.")
(license license:bsd-3)))
+(define-public python-pylru
+ (package
+ (name "python-pylru")
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pylru" version))
+ (sha256
+ (base32 "15yj46307sw703vjfkgnr04dqvaicmfcj0hc6yrciildp55r6bs9"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "test.py")))))))
+ (home-page "https://github.com/jlhutch/pylru")
+ (synopsis "Least recently used (LRU) cache implementation")
+ (description
+ "Pylru implements a true LRU cache along with several support classes.
+Pylru provides a cache class with a simple dict interface. It also provides
+classes to wrap any object that has a dict interface with a cache. Both
+write-through and write-back semantics are supported. Pylru also provides
+classes to wrap functions in a similar way, including a function decorator.")
+ (license license:gpl2+)))
+
(define-public python-legacy-api-wrap
(package
(name "python-legacy-api-wrap")
- branch master updated (f7afefba00 -> 33898cd5b7), guix-commits, 2022/01/11
- 04/15: gnu: Add python-flask-assets., guix-commits, 2022/01/11
- 01/15: gnu: Add python-sarge., guix-commits, 2022/01/11
- 02/15: gnu: Add python-pylru.,
guix-commits <=
- 03/15: gnu: Add python-pyscss., guix-commits, 2022/01/11
- 10/15: gnu: python-netifaces: Update to 0.11.0., guix-commits, 2022/01/11
- 12/15: gnu: python-pkginfo: Update to 1.8.2., guix-commits, 2022/01/11
- 14/15: gnu: python-colorlog: Update to 6.6.0., guix-commits, 2022/01/11
- 05/15: gnu: Add python-zipstream-new., guix-commits, 2022/01/11
- 06/15: gnu: Add python-executing., guix-commits, 2022/01/11
- 09/15: gnu: python-feedparser: Enable tests., guix-commits, 2022/01/11
- 08/15: gnu: Add python-pytest-doctest-custom., guix-commits, 2022/01/11
- 11/15: gnu: python-websocket-client: Update to 0.59.0., guix-commits, 2022/01/11
- 13/15: gnu: python-watchdog: Update to 2.1.6., guix-commits, 2022/01/11