[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH v3 02/21] gnu: Add python-pylru.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH v3 02/21] gnu: Add python-pylru. |
Date: |
Mon, 27 Dec 2021 23:30:25 +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 499ef1e06d..937e5c3399 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11257,6 +11257,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 v3 00/21] Add Octoprint (v3), Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 04/21] gnu: Add python-flask-assets., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 01/21] gnu: Add python-sarge., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 03/21] gnu: Add python-pyscss., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 06/21] gnu: Add python-executing., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 05/21] gnu: Add python-zipstream-new., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 02/21] gnu: Add python-pylru.,
Vinicius Monego <=
- [bug#51314] [PATCH v3 07/21] gnu: Add python-sentry-sdk., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 08/21] gnu: Add python-pytest-doctest-custom., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 09/21] gnu: python-feedparser: Enable tests., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 11/21] gnu: python-websocket-client: Update to 0.59.0., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 10/21] gnu: python-netifaces: Update to 0.11.0., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 13/21] gnu: python-watchdog: Update to 2.1.6., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 15/21] gnu: python-zeroconf: Update to 0.38.1., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 19/21] gnu: Add octoprint-firmwarecheck., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 12/21] gnu: python-pkginfo: Update to 1.8.2., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 14/21] gnu: python-colorlog: Update to 6.6.0., Vinicius Monego, 2021/12/27