From 36821b23b7f5320a6d3926afcff22d2bfe3ed0eb Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 11 Sep 2023 16:24:42 +0800 Subject: [PATCH] gnu: python-cachetools: Update to 5.3.1. * gnu/packages/python-xyz.scm (python-cachetools): Update to 5.3.1. * gnu/packages/matrix.scm (python-matrix-nio)[arguments]: Add phase to loosen cachetools requirement. --- gnu/packages/matrix.scm | 7 +++++++ gnu/packages/python-xyz.scm | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm index 6107dfc979..32ae62fcb4 100644 --- a/gnu/packages/matrix.scm +++ b/gnu/packages/matrix.scm @@ -171,6 +171,13 @@ (define-public python-matrix-nio (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + ;; Remove upper bounds of cachetool pin. + (("cachetools (.*version = )\"\\^4" _ match) + (string-append "cachetools " match + "\">=4"))))) (add-before 'check 'install-tests (lambda* (#:key inputs outputs #:allow-other-keys) (copy-recursively (string-append diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5445318157..d569e334d6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -742,13 +742,13 @@ (define-public python-argopt (define-public python-cachetools (package (name "python-cachetools") - (version "4.2.2") + (version "5.3.1") (source (origin (method url-fetch) (uri (pypi-uri "cachetools" version)) (sha256 (base32 - "1zqc098gk6y614lxwqd9z2gm8lldgvrpid133pnlm4m048gfvdb1")))) + "0azn5c4nkwpq7s5wjzs605if9nxjzblghjnlihm767sfkcnkzs6w")))) (build-system python-build-system) (home-page "https://github.com/tkem/cachetools/") (synopsis "Extensible memoizing collections and decorators")