[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH v2 02/24] gnu: Add python-pylru.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH v2 02/24] gnu: Add python-pylru. |
Date: |
Sat, 13 Nov 2021 20:02:08 +0000 |
* gnu/packages/python-xyz.scm (python-pylru): New variable.
---
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 0b48923d86..cdd71ee2ce 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11228,6 +11228,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")
--
2.30.2
- [bug#51314] [PATCH v2 01/24] gnu: Add python-sarge., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 02/24] gnu: Add python-pylru.,
Vinicius Monego <=
- [bug#51314] [PATCH v2 03/24] gnu: python-flask: Update to 1.1.4., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 04/24] gnu: python-flask: Respect #:tests?., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 07/24] gnu: Add python-zipstream-new., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 05/24] gnu: Add python-pyscss., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 06/24] gnu: Add python-flask-assets., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 08/24] gnu: Add python-executing., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 10/24] gnu: Add python-pytest-doctest-custom., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 12/24] gnu: python-feedparser: Enable tests., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 11/24] gnu: python-feedparser: Update to 6.0.8., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 09/24] gnu: Add python-sentry-sdk., Vinicius Monego, 2021/11/13