aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2021-06-25 08:27:31 +0200
committerLars-Dominik Braun <lars@6xq.net>2021-06-25 08:28:50 +0200
commitf2d10656b2112d66681dde29b0018bcfd5fb5be3 (patch)
tree767277c949199eee872b4116ef8de6b9ae99d6ac /gnu
parent91ea14b9156e7853b2b2f0b6ecece69f83b3b3b2 (diff)
downloadguix-f2d10656b2112d66681dde29b0018bcfd5fb5be3.tar.gz
guix-f2d10656b2112d66681dde29b0018bcfd5fb5be3.zip
gnu: Add python-imgviz.
* gnu/packages/image-processing.scm (python-imgviz): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/image-processing.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 7b29c2a215..0358eda20e 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -42,6 +42,7 @@
#:use-module (guix build-system qt)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system python)
#:use-module (gnu packages)
#:use-module (gnu packages algebra)
#:use-module (gnu packages bison)
@@ -72,6 +73,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages protobuf)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-check)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages serialization)
@@ -1209,3 +1211,39 @@ and Scan Tailor Enhanced versions as well as including many more bug fixes.")
Transport System} images to the more popular TIFF format for illustration
purposes.")
(license license:gpl3+)))
+
+(define-public python-imgviz
+ (package
+ (name "python-imgviz")
+ (version "1.2.6")
+ (source
+ (origin
+ ;; PyPi tarball lacks tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/wkentaro/imgviz.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bm0wdv5p26i8nl4kx3145cz553v401sgbpgc96sddzjfmfiydcw"))))
+ (build-system python-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)))))
+ (propagated-inputs
+ `(("python-matplotlib" ,python-matplotlib)
+ ("python-numpy" ,python-numpy)
+ ("python-pillow" ,python-pillow)
+ ("python-pyyaml" ,python-pyyaml)))
+ (native-inputs `(("python-pytest" ,python-pytest)))
+ (home-page "http://github.com/wkentaro/imgviz")
+ (synopsis "Image Visualization Tools")
+ (description "Python library for object detection, semantic and instance
+segmentation.")
+ (license license:expat)))