From dd4eb8e4bfe1f70bc3dc8b8996fe39c9a7340c8e Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Thu, 9 Oct 2025 22:27:10 +0200 Subject: gnu: python-imagehash: Update to 4.3.2. * gnu/packages/python-science.scm (python-imagehash): Update to 4.3.2. [arguments] <#:phases>: Add 'remove-six phase. Change-Id: I201164afd8c327db4f9f652967c7ea30dfd84a8c Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-science.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index b63e73a76b9..34be71e7f2e 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1514,7 +1514,7 @@ trickery (i.e. combining characters) to plot overlaying histograms.") (define-public python-imagehash (package (name "python-imagehash") - (version "4.3.1") + (version "4.3.2") (source (origin (method git-fetch) ;no tests in PyPI @@ -1526,8 +1526,21 @@ trickery (i.e. combining characters) to plot overlaying histograms.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1lw9lxzrzy9s5v3xc35vmh97hlyavnla087fp19k77va6v8vbjjf")))) + (base32 "1rz1fpwhcx0cbln189bcs61wlwgngcjcn77jvm0yji5s7lshhipy")))) (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; Upstream plans to remove Python 2 compatibility: + ;; https://github.com/JohannesBuchner/imagehash/pull/223 + (add-after 'unpack 'remove-six + (lambda _ + (substitute* (find-files "." ".py$") + (("import six") "") + (("six\\.assertRaisesRegex\\(self, ") + "self.assertRaisesRegex(") + (("six\\.exec_") ""))))))) (native-inputs (list python-pytest python-setuptools -- cgit v1.3