mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: labelme: Update to 5.2.1, fix build.
* gnu/packages/image-processing.scm (labelme): Update to 5.2.1, improve package style. [source] <uri>: Remove trailing ".git" from URL. [build-system]: Swap to pyproject-build-system. [arguments]: Use G-expressions. <test-flags>: Utilize it. <phases>: Use default 'check, remove 'loosen-requirements [propagated-inputs]: Add python-natsort. [description]: Fix indentation. Change-Id: I9552637358ea7b6335d99f49a63cbedbe4984302
This commit is contained in:
parent
b58bf70620
commit
2e3f8619a3
1 changed files with 36 additions and 45 deletions
|
@ -1812,63 +1812,54 @@ processing pipelines.")
|
||||||
(define-public labelme
|
(define-public labelme
|
||||||
(package
|
(package
|
||||||
(name "labelme")
|
(name "labelme")
|
||||||
(version "4.5.13")
|
;; It's the latest available version which does not require not packaged
|
||||||
|
;; <https://github.com/wkentaro/osam>.
|
||||||
|
(version "5.2.1")
|
||||||
(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/labelme.git")
|
(url "https://github.com/wkentaro/labelme")
|
||||||
(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 "0cmi2xb4dgh7738l259rgwhn9l134f0vnaaqc2gflc5yr3lqhrv2"))))
|
(base32 "1xpyad6rlkxyx51jaai4xhdy15k1gvm62xnkjn152hc1vj1c77sr"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(add-after 'unpack 'loosen-requirements
|
#~(list "-m" "not gpu"
|
||||||
(lambda _
|
;; Fails when invoking help2man for unknown reason.
|
||||||
;; Don't require an outdated version of matplotlib.
|
"--ignore=tests/docs_tests/man_tests/test_labelme_1.py")
|
||||||
(substitute* "setup.py"
|
#:phases
|
||||||
(("matplotlib<3\\.3")
|
#~(modify-phases %standard-phases
|
||||||
"matplotlib"))))
|
(add-before 'check 'start-xserver
|
||||||
(add-before 'check 'start-xserver
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(let ((xorg-server #$(this-package-native-input "xorg-server")))
|
||||||
(let ((xorg-server (assoc-ref inputs "xorg-server")))
|
;; Options taken from CI workflow.
|
||||||
;; Options taken from CI workflow.
|
(system (string-append xorg-server "/bin/Xvfb :99 -screen 0 "
|
||||||
(system (string-append xorg-server "/bin/Xvfb :99 -screen 0 "
|
"1920x1200x24 -ac +extension GLX +render "
|
||||||
"1920x1200x24 -ac +extension GLX +render "
|
"-noreset &"))
|
||||||
"-noreset &"))
|
(setenv "DISPLAY" ":99.0")))))))
|
||||||
(setenv "DISPLAY" ":99.0"))))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
;; Fails when invoking help2man for unknown reason.
|
|
||||||
(delete-file "tests/docs_tests/man_tests/test_labelme_1.py")
|
|
||||||
;; One test hangs.
|
|
||||||
(delete-file "tests/labelme_tests/widgets_tests/test_label_dialog.py")
|
|
||||||
;; Calls incompatible function signatures.
|
|
||||||
(delete-file "tests/labelme_tests/widgets_tests/test_label_list_widget.py")
|
|
||||||
(setenv "MPLBACKEND" "agg")
|
|
||||||
(invoke "pytest" "-v" "tests" "-m" "not gpu")))))))
|
|
||||||
(propagated-inputs
|
|
||||||
(list python-imgviz
|
|
||||||
python-matplotlib
|
|
||||||
python-numpy
|
|
||||||
python-pillow
|
|
||||||
python-pyyaml
|
|
||||||
python-qtpy
|
|
||||||
python-termcolor))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest python-pytest-qt xorg-server-for-tests))
|
(list python-pytest
|
||||||
|
python-pytest-qt
|
||||||
|
xorg-server-for-tests))
|
||||||
|
(propagated-inputs
|
||||||
|
(list python-imgviz
|
||||||
|
python-matplotlib
|
||||||
|
python-natsort
|
||||||
|
python-numpy
|
||||||
|
python-pillow
|
||||||
|
python-pyyaml
|
||||||
|
python-qtpy
|
||||||
|
python-termcolor))
|
||||||
(home-page "https://github.com/wkentaro/labelme")
|
(home-page "https://github.com/wkentaro/labelme")
|
||||||
(synopsis
|
(synopsis "Image Polygonal Annotation")
|
||||||
"Image Polygonal Annotation")
|
|
||||||
(description
|
(description
|
||||||
"Image and video labeling tool supporting different shapes like
|
"Image and video labeling tool supporting different shapes like polygons,
|
||||||
polygons, rectangles, circles, lines, points and VOC/COCO export.")
|
rectangles, circles, lines, points and VOC/COCO export.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public charls
|
(define-public charls
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue