guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: python-imgviz: Update to 1.7.6.


From: guix-commits
Subject: 02/02: gnu: python-imgviz: Update to 1.7.6.
Date: Wed, 19 Feb 2025 09:42:28 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 53e96dffa7e317b65fe7d11af148669515ceb487
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Feb 19 14:20:33 2025 +0000

    gnu: python-imgviz: Update to 1.7.6.
    
    * gnu/packages/image-processing.scm (python-imgviz): Update to 1.7.6.
    [source] <url>: Remove trailing ".git".
    <snippet>: Remove redundant substitutes.
    [build-system]: Swap to pyproject-build-system.
    [arguments] <phases>: Use default 'check; add 'pretend-version.
    [native-inputs]: Add python-hatchling, python-hatch-vcs, and
    python-hatch-fancy-pypi-readme.
    
    Change-Id: Idfa20a39660d7f29e3b9a1ae69d934756ae08008
---
 gnu/packages/image-processing.scm | 40 +++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/image-processing.scm 
b/gnu/packages/image-processing.scm
index 0ad2855793..405f90ca9a 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -1672,36 +1672,36 @@ purposes.")
 (define-public python-imgviz
   (package
     (name "python-imgviz")
-    (version "1.2.6")
+    (version "1.7.6")
     (source
      (origin
        ;; PyPi tarball lacks tests.
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/wkentaro/imgviz.git";)
+             (url "https://github.com/wkentaro/imgviz";)
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1bm0wdv5p26i8nl4kx3145cz553v401sgbpgc96sddzjfmfiydcw"))
-      (snippet
-       #~(begin (use-modules (guix build utils))
-                (substitute* "imgviz/draw.py"
-                  (("collections\\.Iterable") "collections.abc.Iterable"))
-                (substitute* "imgviz/tile.py"
-                  (("collections\\.Sequence") "collections.abc.Sequence"))))))
-    (build-system python-build-system)
+        (base32 "0z7nwnvqh3hbbccf7v56398aiiwqs68kyrgc5vsmmh1cp4pwrgnb"))))
+    (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 "pytest" "-v" "tests"))
-             #t)))))
+     (list #:phases
+           #~(modify-phases %standard-phases
+               ;; LookupError: Error getting the version from source `vcs`:
+               ;; setuptools-scm was unable to detect version for <...>
+               (add-after 'unpack 'pretend-version
+                 (lambda _
+                   (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+    (native-inputs
+     (list python-pytest
+           python-hatchling
+           python-hatch-vcs
+           python-hatch-fancy-pypi-readme))
     (propagated-inputs
-      (list python-matplotlib python-numpy python-pillow python-pyyaml))
-    (native-inputs (list python-pytest))
+     (list python-matplotlib
+           python-numpy
+           python-pillow
+           python-pyyaml))
     (home-page "http://github.com/wkentaro/imgviz";)
     (synopsis "Image Visualization Tools")
     (description "Python library for object detection, semantic and instance



reply via email to

[Prev in Thread] Current Thread [Next in Thread]