summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-19 15:22:01 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-24 11:17:06 +0100
commitea5c8823ff8f2fa509fb04b37a05b0137a53bb20 (patch)
tree8c176b6c1e9fc1cd2525ca0278bfd97ddf4e0b0a /gnu/packages
parentf70954c1301e5ab4364bb10758d0d39d41fe7410 (diff)
gnu: python-pylru: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-pylru): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Remove 'check phase replacement in favor of <#:test-backend, #:test-flags>. [native-inputs]: Add python-pytest, python-setuptools. Change-Id: I69ab2418da3cdc3043fd54a5a08f078f86f252c9 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-xyz.scm22
1 files changed, 11 insertions, 11 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4cc45613d76..ed8703c585a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18050,19 +18050,19 @@ provides a collection of cache libraries in the same API interface.")
(version "1.2.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pylru" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jlhutch/pylru")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "15yj46307sw703vjfkgnr04dqvaicmfcj0hc6yrciildp55r6bs9"))))
- (build-system python-build-system)
+ (base32 "0sqai530d7fpjzny476f3zqq9mv05xqbyw500jmbhrpj9yy1l9xp"))))
+ (build-system pyproject-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")))))))
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "test.py")))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/jlhutch/pylru")
(synopsis "Least recently used (LRU) cache implementation")
(description