mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
8b871ae377
commit
53e96dffa7
1 changed files with 20 additions and 20 deletions
|
@ -1672,36 +1672,36 @@ purposes.")
|
||||||
(define-public python-imgviz
|
(define-public python-imgviz
|
||||||
(package
|
(package
|
||||||
(name "python-imgviz")
|
(name "python-imgviz")
|
||||||
(version "1.2.6")
|
(version "1.7.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
;; PyPi tarball lacks tests.
|
;; PyPi tarball lacks tests.
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/wkentaro/imgviz.git")
|
(url "https://github.com/wkentaro/imgviz")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1bm0wdv5p26i8nl4kx3145cz553v401sgbpgc96sddzjfmfiydcw"))
|
(base32 "0z7nwnvqh3hbbccf7v56398aiiwqs68kyrgc5vsmmh1cp4pwrgnb"))))
|
||||||
(snippet
|
(build-system pyproject-build-system)
|
||||||
#~(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)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list #:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'check
|
;; LookupError: Error getting the version from source `vcs`:
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
;; setuptools-scm was unable to detect version for <...>
|
||||||
(when tests?
|
(add-after 'unpack 'pretend-version
|
||||||
(add-installed-pythonpath inputs outputs)
|
(lambda _
|
||||||
(invoke "pytest" "-v" "tests"))
|
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
|
||||||
#t)))))
|
(native-inputs
|
||||||
|
(list python-pytest
|
||||||
|
python-hatchling
|
||||||
|
python-hatch-vcs
|
||||||
|
python-hatch-fancy-pypi-readme))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-matplotlib python-numpy python-pillow python-pyyaml))
|
(list python-matplotlib
|
||||||
(native-inputs (list python-pytest))
|
python-numpy
|
||||||
|
python-pillow
|
||||||
|
python-pyyaml))
|
||||||
(home-page "http://github.com/wkentaro/imgviz")
|
(home-page "http://github.com/wkentaro/imgviz")
|
||||||
(synopsis "Image Visualization Tools")
|
(synopsis "Image Visualization Tools")
|
||||||
(description "Python library for object detection, semantic and instance
|
(description "Python library for object detection, semantic and instance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue