~ruther/guix-local

dd4eb8e4bfe1f70bc3dc8b8996fe39c9a7340c8e — Hugo Buddelmeijer 9 months ago b2943f6
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>
1 files changed, 15 insertions(+), 2 deletions(-)

M gnu/packages/python-science.scm
M gnu/packages/python-science.scm => gnu/packages/python-science.scm +15 -2
@@ 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