diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-10-09 22:27:10 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-14 12:06:55 +0100 |
| commit | dd4eb8e4bfe1f70bc3dc8b8996fe39c9a7340c8e (patch) | |
| tree | 4ab0a547de913694ea03830e55fcd6994c025a87 /gnu | |
| parent | b2943f6791d02feda7901c3dc2c777193e664455 (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-science.scm | 17 |
1 files changed, 15 insertions, 2 deletions
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 |
