unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39292] [PATCH 0/10] gnu: Add rapid-photo-downloader
@ 2020-01-26 10:07 sschott
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: sschott @ 2020-01-26 10:07 UTC (permalink / raw)
  To: 39292

[-- Attachment #1: Type: text/html, Size: 715 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo
  2020-01-26 10:07 [bug#39292] [PATCH 0/10] gnu: Add rapid-photo-downloader sschott
@ 2020-01-26 17:24 ` Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
                     ` (9 more replies)
  2020-02-02  9:36 ` [bug#39292] Re: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
  2 siblings, 10 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-pymediainfo): New variable.
---
 gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2c308796e7..9f5cb20095 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -166,6 +166,47 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-pymediainfo
+  (package
+    (name "python-pymediainfo")
+    (version "4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pymediainfo" version))
+       (sha256
+        (base32
+         "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools-scm" ,python-setuptools-scm)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-runner" ,python-pytest-runner)))
+    (inputs
+     `(("libmediainfo" ,libmediainfo)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'patch-libmediainfo
+                    (lambda _
+                      (substitute* "pymediainfo/__init__.py"
+                        (("libmediainfo.so.0")
+                         (string-append (assoc-ref %build-inputs "libmediainfo")
+                                        "/lib/libmediainfo.so.0")))))
+                  (replace 'check
+                    (lambda _
+                      ;; Extend PYTHONPATH so the built package will be found.
+                      (setenv "PYTHONPATH"
+                              (string-append (getcwd) "/build/lib:"
+                                             (getenv "PYTHONPATH")))
+                      (invoke "pytest" "-vv" "-k" "not test_parse_url"))))))
+    (home-page
+     "https://github.com/sbraz/pymediainfo")
+    (synopsis
+     "Python wrapper for the mediainfo library")
+    (description
+     "Python wrapper for the mediainfo library to access the technical and tag data for video and audio files.")
+    (license license:expat)))
+
 (define-public python-psutil
   (package
     (name "python-psutil")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 02/10] gnu: Add python-easygui
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
                     ` (8 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-easygui): New variable.
---
 gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9f5cb20095..1592c6b511 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -68,6 +68,7 @@
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
+;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -166,6 +167,24 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-easygui
+  (package
+    (name "python-easygui")
+    (version "0.98.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "easygui" version))
+              (sha256
+               (base32
+                "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-tkinter" ,python "tk")))
+    (home-page "https://github.com/robertlugg/easygui")
+    (synopsis "GUI programming module for Python")
+    (description "EasyGUI is a module for very simple, very easy GUI programming in Python.  EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven.  Instead, all GUI interactions are invoked by simple function calls.")
+    (license license:bsd-3)))
+
 (define-public python-pymediainfo
   (package
     (name "python-pymediainfo")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 03/10] gnu: Add python-rawkit
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-27  8:39     ` Christopher Baines
  2020-01-26 17:24   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
                     ` (7 subsequent siblings)
  9 siblings, 1 reply; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-rawkit): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1592c6b511..7c4b0495fa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -126,6 +126,7 @@
   #:use-module (gnu packages openstack)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages perl)
+  #:use-module (gnu packages photo)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-check)
@@ -167,6 +168,26 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-rawkit
+  (package
+    (name "python-rawkit")
+    (version "0.6.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "rawkit" version))
+              (sha256
+               (base32
+                "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("libraw" ,libraw)
+       ("python-pytest" ,python-pytest)
+       ("python-mock" ,python-mock)))
+    (home-page "https://rawkit.readthedocs.io/en/v0.6.0/")
+    (synopsis "Ctypes-based LibRaw binding for Python")
+    (description "The rawkit package provides two modules:  rawkit and libraw.  The rawkit module provides a high-level Pythonic interface for developing raw photos, while the libraw module provides a CTypes based interface for interacting with the low-level LibRaw C APIs.")
+    (license license:expat)))
+
 (define-public python-easygui
   (package
     (name "python-easygui")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 04/10] gnu: Add python-d2to1
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
                     ` (6 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-d2to1): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7c4b0495fa..67cde2af5c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -168,6 +168,24 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-d2to1
+  (package
+    (name "python-d2to1")
+    (version "0.2.12.post1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "d2to1" version))
+              (sha256
+               (base32
+                "09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-nose" ,python-nose)))
+    (home-page "https://github.com/embray/d2to1")
+    (synopsis "Allows for distutils2-like setup.cfg files as package metadata in python")
+    (description "The python package d2to1 (the d is for distutils) allows using distutils2-like setup.cfg files for a package's metadata with a distribute/setuptools setup.py script.")
+    (license license:bsd-2)))
+
 (define-public python-rawkit
   (package
     (name "python-rawkit")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 05/10] gnu: Add python-colour
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (2 preceding siblings ...)
  2020-01-26 17:24   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
                     ` (5 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-colour): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 67cde2af5c..22f316a0a6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -168,6 +168,24 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-colour
+  (package
+    (name "python-colour")
+    (version "0.1.5")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "colour" version))
+              (sha256
+               (base32
+                "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-d2to1" ,python-d2to1)))
+    (home-page "https://github.com/vaab/colour")
+    (synopsis "Convert and manipulate various color representations")
+    (description "Pythonic way to manipulate color representations (HSL, RVB, web, X11, ...).")
+    (license license:expat)))
+
 (define-public python-d2to1
   (package
     (name "python-d2to1")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (3 preceding siblings ...)
  2020-01-26 17:24   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-27  8:40     ` Christopher Baines
  2020-01-26 17:24   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
                     ` (4 subsequent siblings)
  9 siblings, 1 reply; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-gphoto2): New variable.
---
 gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 22f316a0a6..d0ad983b81 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -168,6 +168,25 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-gphoto2
+  (package
+    (name "python-gphoto2")
+    (version "2.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "gphoto2" version))
+              (sha256
+               (base32
+                "1fdmlyy3lbc6ggfn60fjizaz5icxd676y7gz9nzfy3l4id7mfyk4"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("libgphoto2" ,libgphoto2)))
+    (home-page "https://github.com/jim-easterbrook/python-gphoto2")
+    (synopsis "Python interface to libgphoto2")
+    (description "@code{python-gphoto2} is a comprehensive Python interface (or binding) to @code{libgphoto2}.  It is built using @code{SWIG} to automatically generate the interface code.")
+    (license license:gpl3+)))
+
 (define-public python-colour
   (package
     (name "python-colour")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 07/10] gnu: Add python-pyprind
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (4 preceding siblings ...)
  2020-01-26 17:24   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Sebastian Schott
                     ` (3 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-pyprind): New variable.
---
 gnu/packages/python-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d0ad983b81..56be634201 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -168,6 +168,24 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-pyprind
+  (package
+    (name "python-pyprind")
+    (version "2.11.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "PyPrind" version))
+              (sha256
+               (base32
+                "0xg6m5hr33h9bdlrr42kc58jm2m87a9zsagy7n2m4n407d2snv64"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-psutil" ,python-psutil)))
+    (home-page "https://github.com/rasbt/pyprind")
+    (synopsis "Python Progress Bar and Percent Indicator Utility")
+    (description "The PyPrind (Python Progress Indicator) module provides a progress bar and a percentage indicator object that let you track the progress of a loop structure or other iterative computation.")
+    (license license:bsd-3)))
+
 (define-public python-gphoto2
   (package
     (name "python-gphoto2")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 08/10] gnu: Add python-colorlog
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (5 preceding siblings ...)
  2020-01-26 17:24   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
                     ` (2 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-colorlog): New variable.
---
 gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 56be634201..979db8be21 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -168,6 +168,33 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-colorlog
+  (package
+    (name "python-colorlog")
+    (version "4.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "colorlog" version))
+              (sha256
+               (base32
+                "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      ;; Extend PYTHONPATH so the built package will be found.
+                      (setenv "PYTHONPATH"
+                              (string-append (getcwd) "/build/lib:"
+                                             (getenv "PYTHONPATH")))
+                      (invoke "pytest" "-p" "no:logging"))))))
+    (home-page "https://github.com/borntyping/python-colorlog")
+    (synopsis "Log formatting with colors for python")
+    (description "The @code{colorlog.ColoredFormatter} is a formatter for use with Python's logging module that outputs records using terminal colors.")
+    (license license:expat)))
+
 (define-public python-pyprind
   (package
     (name "python-pyprind")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 09/10] gnu: Add python-tenacity
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (6 preceding siblings ...)
  2020-01-26 17:24   ` [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-26 17:24   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
  2020-01-27  8:35   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Christopher Baines
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-tenacity): New variable.
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 979db8be21..141c81dcf4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -168,6 +168,34 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-tenacity
+  (package
+    (name "python-tenacity")
+    (version "6.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "tenacity" version))
+              (sha256
+               (base32
+                "0w9miqmmi63yqp9lw7p6nf6gh5pa57vg60v6f94f11qqpg19gwvj"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools-scm" ,python-setuptools-scm)
+       ("python-sphinx" ,python-sphinx)
+       ("python-tornado" ,python-tornado)
+       ("python-pytest" ,python-pytest)))
+    (propagated-inputs
+     `(("python-six" ,python-six)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (invoke "pytest"))))))
+    (home-page "https://github.com/jd/tenacity")
+    (synopsis "Retrying library for python")
+    (description "Tenacity is a general-purpose python library to simplify the task of adding retry behavior to just about anything.")
+    (license license:asl2.0)))
+
 (define-public python-colorlog
   (package
     (name "python-colorlog")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (7 preceding siblings ...)
  2020-01-26 17:24   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
@ 2020-01-26 17:24   ` Sebastian Schott
  2020-01-27  8:49     ` Christopher Baines
  2020-01-27  8:35   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Christopher Baines
  9 siblings, 1 reply; 30+ messages in thread
From: Sebastian Schott @ 2020-01-26 17:24 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/photo.scm (rapid-photo-downloader): New variable.
---
 gnu/packages/photo.scm | 69 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm
index 0867433245..91c0d0e6a4 100644
--- a/gnu/packages/photo.scm
+++ b/gnu/packages/photo.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -26,6 +27,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
+  #:use-module (guix build-system python)
   #:use-module (guix download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
@@ -37,12 +39,15 @@
   #:use-module (gnu packages boost)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages curl)
+  #:use-module (gnu packages file)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages graphics)
+  #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
@@ -55,10 +60,14 @@
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages popt)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tex)
+  #:use-module (gnu packages time)
+  #:use-module (gnu packages video)
   #:use-module (gnu packages web)
   #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages xfig)
@@ -67,6 +76,66 @@
   #:use-module ((srfi srfi-1) #:hide (zip))
   #:use-module (srfi srfi-26))
 
+(define-public rapid-photo-downloader
+  (package
+    (name "rapid-photo-downloader")
+    (version "0.9.18")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://launchpad.net/rapid/pyqt/"
+                                  version "/+download/" name "-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "15p7sssg6vmqbm5xnc4j5dr89d7gl7y5qyq44a240yl5aqkjnybw"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("file" ,file)
+       ("intltool" ,intltool)
+       ("gdk-pixbuf" ,gdk-pixbuf)
+       ("gexiv2" ,gexiv2)
+       ("gobject-introspection" ,gobject-introspection)
+       ("gst-libav" ,gst-libav)
+       ("gst-plugins-base" ,gst-plugins-base)
+       ("gst-plugins-good" ,gst-plugins-good)
+       ("gstreamer" ,gstreamer)
+       ("libgudev" ,libgudev)
+       ("libnotify" ,libnotify)
+       ("libmediainfo" ,libmediainfo)
+       ("usdisks" ,udisks)))
+    (propagated-inputs
+     `(("python-pyqt" ,python-pyqt)
+       ("python-pygobject" ,python-pygobject)
+       ("python-gphoto2" ,python-gphoto2)
+       ("python-pyzmq" ,python-pyzmq)
+       ("python-tornado" ,python-tornado)
+       ("python-psutil" ,python-psutil)
+       ("python-pyxdg" ,python-pyxdg)
+       ("python-arrow" ,python-arrow)
+       ("python-dateutil" ,python-dateutil)
+       ("python-easygui" ,python-easygui)
+       ("python-colour" ,python-colour)
+       ("python-pymediainfo" ,python-pymediainfo)
+       ("python-sortedcontainers" ,python-sortedcontainers)
+       ("python-rawkit" ,python-rawkit)
+       ("python-requests" ,python-requests)
+       ("python-colorlog" ,python-colorlog)
+       ("python-pyprind" ,python-pyprind)
+       ("python-tenacity" ,python-tenacity)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'patch-libmediainfo
+                    (lambda _
+                      (substitute* "raphodo/metadatavideo.py"
+                        (("pymedia_library_file = 'libmediainfo.so.0'")
+                         (string-append "pymedia_library_file = '"
+                                        (assoc-ref %build-inputs "libmediainfo")
+                                        "/lib/libmediainfo.so.0'"))))))))
+    (home-page "https://www.damonlynch.net/rapid/")
+    (synopsis "Import photos and videos from cameras, phones and memory cards")
+    (description "Import photos and videos from cameras, phones and memory cards and generate meaningful file and folder names.")
+    (license license:gpl2+)))
+
 (define-public libraw
   (package
     (name "libraw")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (8 preceding siblings ...)
  2020-01-26 17:24   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
@ 2020-01-27  8:35   ` Christopher Baines
  9 siblings, 0 replies; 30+ messages in thread
From: Christopher Baines @ 2020-01-27  8:35 UTC (permalink / raw)
  To: Sebastian Schott; +Cc: 39292

[-- Attachment #1: Type: text/plain, Size: 3311 bytes --]


Sebastian Schott <sschott@mailbox.org> writes:

> * gnu/packages/python-xyz.scm (python-pymediainfo): New variable.
> ---
>  gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 2c308796e7..9f5cb20095 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -166,6 +166,47 @@
>    #:use-module (srfi srfi-1)
>    #:use-module (srfi srfi-26))
>
> +(define-public python-pymediainfo
> +  (package
> +    (name "python-pymediainfo")
> +    (version "4.1")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "pymediainfo" version))
> +       (sha256
> +        (base32
> +         "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
> +    (build-system python-build-system)
> +    (native-inputs
> +     `(("python-setuptools-scm" ,python-setuptools-scm)
> +       ("python-pytest" ,python-pytest)
> +       ("python-pytest-runner" ,python-pytest-runner)))
> +    (inputs
> +     `(("libmediainfo" ,libmediainfo)))
> +    (arguments
> +     `(#:phases (modify-phases %standard-phases
> +                  (add-after 'unpack 'patch-libmediainfo
> +                    (lambda _
> +                      (substitute* "pymediainfo/__init__.py"
> +                        (("libmediainfo.so.0")
> +                         (string-append (assoc-ref %build-inputs "libmediainfo")
> +                                        "/lib/libmediainfo.so.0")))))

There's a convention of phases returning #t (I think), so it would be
good to just put #t at the end of this phase.

> +                  (replace 'check
> +                    (lambda _
> +                      ;; Extend PYTHONPATH so the built package will be found.
> +                      (setenv "PYTHONPATH"
> +                              (string-append (getcwd) "/build/lib:"
> +                                             (getenv "PYTHONPATH")))
> +                      (invoke "pytest" "-vv" "-k" "not
> test_parse_url"))))))

Here, is the "not test_parse_url" bit taken from the upstream source, or
does it have significance for the Guix package?

Also, if the only reason the check phase doesn't work is the PYTHONPATH,
you could always do something like:

  (add-before 'check 'set-PYTHONPATH
    (lambda _
      ;; Extend PYTHONPATH so the built package will be found.
      (setenv "PYTHONPATH"
              (string-append (getcwd) "/build/lib:"
                             (getenv "PYTHONPATH")))
      #t))

> +    (home-page
> +     "https://github.com/sbraz/pymediainfo")
> +    (synopsis
> +     "Python wrapper for the mediainfo library")
> +    (description
> +     "Python wrapper for the mediainfo library to access the
> technical and tag data for video and audio files.")

This line is a bit too long, not in terms of the value, but in terms of
how it's represented in the source code. Running guix lint on this
package should tell you this.

This is also true for some other new packages added in other patches in
this series, there's a list here [1].

1: https://guix-patches-data.cbaines.net/compare?base_commit=3cb8cb666069804551148b9c49ebaea6b3a9973e&target_commit=cf6f9c3d5d13c37af3852734778ec11b26ac8d4b

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 03/10] gnu: Add python-rawkit
  2020-01-26 17:24   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
@ 2020-01-27  8:39     ` Christopher Baines
  0 siblings, 0 replies; 30+ messages in thread
From: Christopher Baines @ 2020-01-27  8:39 UTC (permalink / raw)
  To: 39292; +Cc: sschott

[-- Attachment #1: Type: text/plain, Size: 2402 bytes --]


Sebastian Schott <sschott@mailbox.org> writes:

> * gnu/packages/python-xyz.scm (python-rawkit): New variable.
> ---
>  gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 1592c6b511..7c4b0495fa 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -126,6 +126,7 @@
>    #:use-module (gnu packages openstack)
>    #:use-module (gnu packages pcre)
>    #:use-module (gnu packages perl)
> +  #:use-module (gnu packages photo)
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages python)
>    #:use-module (gnu packages python-check)
> @@ -167,6 +168,26 @@
>    #:use-module (srfi srfi-1)
>    #:use-module (srfi srfi-26))
>
> +(define-public python-rawkit
> +  (package
> +    (name "python-rawkit")
> +    (version "0.6.0")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (pypi-uri "rawkit" version))
> +              (sha256
> +               (base32
> +                "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
> +    (build-system python-build-system)
> +    (native-inputs
> +     `(("libraw" ,libraw)

This might need to be an input, rather than a native-input. The
distinction is important for cross-compilation, as at that point, the
architecture for native-inputs matches where the build is taking place,
but the architecture for inputs matches the target architecture.

The distinction is also just useful to track what's needed at runtime,
rather than just build time, and I'm guessing libraw is required at
runtime.

> +       ("python-pytest" ,python-pytest)
> +       ("python-mock" ,python-mock)))
> +    (home-page "https://rawkit.readthedocs.io/en/v0.6.0/")

Maybe tweak this to not be version dependent (if possible).

> +    (synopsis "Ctypes-based LibRaw binding for Python")
> +    (description "The rawkit package provides two modules:  rawkit
> and libraw.  The rawkit module provides a high-level Pythonic
> interface for developing raw photos, while the libraw module provides
> a CTypes based interface for interacting with the low-level LibRaw C
> APIs.")

This line is too long, could you split the description across multiple
lines.

> +    (license license:expat)))
> +
>  (define-public python-easygui
>    (package
>      (name "python-easygui")

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2
  2020-01-26 17:24   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
@ 2020-01-27  8:40     ` Christopher Baines
  0 siblings, 0 replies; 30+ messages in thread
From: Christopher Baines @ 2020-01-27  8:40 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

[-- Attachment #1: Type: text/plain, Size: 1536 bytes --]


Sebastian Schott <sschott@mailbox.org> writes:

> * gnu/packages/python-xyz.scm (python-gphoto2): New variable.
> ---
>  gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 22f316a0a6..d0ad983b81 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -168,6 +168,25 @@
>    #:use-module (srfi srfi-1)
>    #:use-module (srfi srfi-26))
>
> +(define-public python-gphoto2
> +  (package
> +    (name "python-gphoto2")
> +    (version "2.1.0")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (pypi-uri "gphoto2" version))
> +              (sha256
> +               (base32
> +                "1fdmlyy3lbc6ggfn60fjizaz5icxd676y7gz9nzfy3l4id7mfyk4"))))
> +    (build-system python-build-system)
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)
> +       ("libgphoto2" ,libgphoto2)))

libgphoto2 probably wants to be in the inputs section, as I'm guessing
it's used at runtime (not just when the package is being built).

> +    (home-page "https://github.com/jim-easterbrook/python-gphoto2")
> +    (synopsis "Python interface to libgphoto2")
> +    (description "@code{python-gphoto2} is a comprehensive Python interface (or binding) to @code{libgphoto2}.  It is built using @code{SWIG} to automatically generate the interface code.")
> +    (license license:gpl3+)))
> +
>  (define-public python-colour
>    (package
>      (name "python-colour")

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader
  2020-01-26 17:24   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
@ 2020-01-27  8:49     ` Christopher Baines
  0 siblings, 0 replies; 30+ messages in thread
From: Christopher Baines @ 2020-01-27  8:49 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

[-- Attachment #1: Type: text/plain, Size: 3806 bytes --]


Sebastian Schott <sschott@mailbox.org> writes:

> * gnu/packages/photo.scm (rapid-photo-downloader): New variable.
> ---
>  gnu/packages/photo.scm | 69 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 69 insertions(+)

...

So I've managed to build this package on my system, which is a good
start :)

> +(define-public rapid-photo-downloader
> +  (package
> +    (name "rapid-photo-downloader")
> +    (version "0.9.18")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://launchpad.net/rapid/pyqt/"
> +                                  version "/+download/" name "-"
> +                                  version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "15p7sssg6vmqbm5xnc4j5dr89d7gl7y5qyq44a240yl5aqkjnybw"))))
> +    (build-system python-build-system)
> +    (native-inputs
> +     `(("file" ,file)
> +       ("intltool" ,intltool)
> +       ("gdk-pixbuf" ,gdk-pixbuf)
> +       ("gexiv2" ,gexiv2)
> +       ("gobject-introspection" ,gobject-introspection)
> +       ("gst-libav" ,gst-libav)
> +       ("gst-plugins-base" ,gst-plugins-base)
> +       ("gst-plugins-good" ,gst-plugins-good)
> +       ("gstreamer" ,gstreamer)
> +       ("libgudev" ,libgudev)
> +       ("libnotify" ,libnotify)
> +       ("libmediainfo" ,libmediainfo)
> +       ("usdisks" ,udisks)))

If any of these packages above are used at runtime, move them to the
inputs section.

> +    (propagated-inputs
> +     `(("python-pyqt" ,python-pyqt)
> +       ("python-pygobject" ,python-pygobject)
> +       ("python-gphoto2" ,python-gphoto2)
> +       ("python-pyzmq" ,python-pyzmq)
> +       ("python-tornado" ,python-tornado)
> +       ("python-psutil" ,python-psutil)
> +       ("python-pyxdg" ,python-pyxdg)
> +       ("python-arrow" ,python-arrow)
> +       ("python-dateutil" ,python-dateutil)
> +       ("python-easygui" ,python-easygui)
> +       ("python-colour" ,python-colour)
> +       ("python-pymediainfo" ,python-pymediainfo)
> +       ("python-sortedcontainers" ,python-sortedcontainers)
> +       ("python-rawkit" ,python-rawkit)
> +       ("python-requests" ,python-requests)
> +       ("python-colorlog" ,python-colorlog)
> +       ("python-pyprind" ,python-pyprind)
> +       ("python-tenacity" ,python-tenacity)))

So I'm guessing this works, but one alternative to making all these
packages propagated inputs, is to wrap the relevant executables in the
package with specific environment variables.

This has some advantages, as it doesn't require pushing all these
packages in to the users profile, and often it means you can run the
package directly from the store, without having to install it in to a
profile.

Take a look at the package for Rhythmbox as an example [1].

1: http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/gnome.scm#n5035

> +    (arguments
> +     `(#:phases (modify-phases %standard-phases
> +                  (add-after 'unpack 'patch-libmediainfo
> +                    (lambda _
> +                      (substitute* "raphodo/metadatavideo.py"
> +                        (("pymedia_library_file = 'libmediainfo.so.0'")
> +                         (string-append "pymedia_library_file = '"
> +                                        (assoc-ref %build-inputs "libmediainfo")
> +                                        "/lib/libmediainfo.so.0'"))))))))
> +    (home-page "https://www.damonlynch.net/rapid/")
> +    (synopsis "Import photos and videos from cameras, phones and memory cards")
> +    (description "Import photos and videos from cameras, phones and memory cards and generate meaningful file and folder names.")
> +    (license license:gpl2+)))
> +
>  (define-public libraw
>    (package
>      (name "libraw")

Thanks for sending these patches :)

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] Re: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader
  2020-01-26 10:07 [bug#39292] [PATCH 0/10] gnu: Add rapid-photo-downloader sschott
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
@ 2020-02-02  9:36 ` Sebastian Schott
  2020-02-02 10:11   ` Christopher Baines
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
  2 siblings, 1 reply; 30+ messages in thread
From: Sebastian Schott @ 2020-02-02  9:36 UTC (permalink / raw)
  To: 39292@debbugs.gnu.org; +Cc: mail@cbaines.net

[-- Attachment #1: Type: text/html, Size: 841 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader
  2020-02-02  9:36 ` [bug#39292] Re: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
@ 2020-02-02 10:11   ` Christopher Baines
  0 siblings, 0 replies; 30+ messages in thread
From: Christopher Baines @ 2020-02-02 10:11 UTC (permalink / raw)
  To: Sebastian Schott; +Cc: 39292@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]


Sebastian Schott <s.schott@mailbox.org> writes:

> Hi Chris,
>
> thank you very much for your suggestions and explanations (somehow
> your messages did not reach my mail inbox). Now I got some work to do,
> but I am not quite sure on how to proceed. Should I step back in my
> local git history, apply the corrections and resend the patches or can
> I just go on and patch my patches? I guess everything should go to the
> initial bug tracking number?

Hi Sebastian,

Sorry for the email issues, I had an issue with my mailserver, but it
should be fixed now.

The way you've split your changes across commits is good, so ideally
just tweak the commits. If you're familiar with interactive rebasing in
Git, you can use that to make the changes.

Don't worry too much about it though, it's the end result that's the
most important. Once you've had a go at iterating the patches, just send
them again to the bug email address.

Just let me know if you have any questions :)

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo
  2020-01-26 10:07 [bug#39292] [PATCH 0/10] gnu: Add rapid-photo-downloader sschott
  2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
  2020-02-02  9:36 ` [bug#39292] Re: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
@ 2020-03-07 15:11 ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
                     ` (9 more replies)
  2 siblings, 10 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-pymediainfo): New variable.
---
 gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bd107f9648..c1f1c7fa0e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -70,6 +70,7 @@
 ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
+;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -170,6 +171,51 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-pymediainfo
+  (package
+    (name "python-pymediainfo")
+    (version "4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pymediainfo" version))
+       (sha256
+        (base32
+         "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools-scm" ,python-setuptools-scm)
+       ("python-pytest" ,python-pytest)))
+    (inputs
+     `(("libmediainfo" ,libmediainfo)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-libmediainfo
+           (lambda _
+             (substitute* "pymediainfo/__init__.py"
+               (("libmediainfo.so.0")
+                (string-append (assoc-ref %build-inputs "libmediainfo")
+                               "/lib/libmediainfo.so.0")))
+             #t))
+         (replace 'check
+           (lambda _
+             ;; Extend PYTHONPATH so the built package will be found.
+             (setenv "PYTHONPATH"
+                     (string-append (getcwd) "/build/lib:"
+                                    (getenv "PYTHONPATH")))
+             ;; Skip the only failing test "test_parse_url"
+             (invoke "pytest" "-vv" "-k" "not test_parse_url")
+             #t)))))
+    (home-page
+     "https://github.com/sbraz/pymediainfo")
+    (synopsis
+     "Python wrapper for the mediainfo library")
+    (description
+     "Python wrapper for the mediainfo library to access the technical and tag
+data for video and audio files.")
+    (license license:expat)))
+
 (define-public python-psutil
   (package
     (name "python-psutil")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 02/10] gnu: Add python-easygui
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
                     ` (8 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-easygui): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c1f1c7fa0e..17581c9304 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -171,6 +171,27 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-easygui
+  (package
+    (name "python-easygui")
+    (version "0.98.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "easygui" version))
+              (sha256
+               (base32
+                "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-tkinter" ,python "tk")))
+    (home-page "https://github.com/robertlugg/easygui")
+    (synopsis "GUI programming module for Python")
+    (description "EasyGUI is a module for very simple, very easy GUI
+programming in Python.  EasyGUI is different from other GUI generators in that
+EasyGUI is NOT event-driven.  Instead, all GUI interactions are invoked by
+simple function calls.")
+    (license license:bsd-3)))
+
 (define-public python-pymediainfo
   (package
     (name "python-pymediainfo")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 03/10] gnu: Add python-rawkit
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
                     ` (7 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-rawkit): New variable.
---
 gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 17581c9304..3f3030bc4e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -130,6 +130,7 @@
   #:use-module (gnu packages openstack)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages perl)
+  #:use-module (gnu packages photo)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-check)
@@ -171,6 +172,30 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-rawkit
+  (package
+    (name "python-rawkit")
+    (version "0.6.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "rawkit" version))
+              (sha256
+               (base32
+                "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-mock" ,python-mock)))
+    (inputs
+     `(("libraw" ,libraw)))
+    (home-page "https://rawkit.readthedocs.io")
+    (synopsis "Ctypes-based LibRaw binding for Python")
+    (description "The rawkit package provides two modules:  rawkit and libraw.
+The rawkit module provides a high-level Pythonic interface for developing raw
+photos, while the libraw module provides a CTypes based interface for
+interacting with the low-level LibRaw C APIs.")
+    (license license:expat)))
+
 (define-public python-easygui
   (package
     (name "python-easygui")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 04/10] gnu: Add python-d2to1
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
                     ` (6 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-d2to1): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3f3030bc4e..4383fef660 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -172,6 +172,27 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-d2to1
+  (package
+    (name "python-d2to1")
+    (version "0.2.12.post1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "d2to1" version))
+              (sha256
+               (base32
+                "09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-nose" ,python-nose)))
+    (home-page "https://github.com/embray/d2to1")
+    (synopsis "Allows for distutils2-like setup.cfg files as package metadata
+in python")
+    (description "The python package d2to1 (the d is for distutils) allows
+using distutils2-like setup.cfg files for a package's metadata with a
+distribute/setuptools setup.py script.")
+    (license license:bsd-2)))
+
 (define-public python-rawkit
   (package
     (name "python-rawkit")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 05/10] gnu: Add python-colour
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (2 preceding siblings ...)
  2020-03-07 15:11   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
                     ` (5 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-colour): New variable.
---
 gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4383fef660..8b3920fb00 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -172,6 +172,25 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-colour
+  (package
+    (name "python-colour")
+    (version "0.1.5")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "colour" version))
+              (sha256
+               (base32
+                "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-d2to1" ,python-d2to1)))
+    (home-page "https://github.com/vaab/colour")
+    (synopsis "Convert and manipulate various color representations")
+    (description "Pythonic way to manipulate color representations (HSL, RVB,
+web, X11, ...).")
+    (license license:expat)))
+
 (define-public python-d2to1
   (package
     (name "python-d2to1")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (3 preceding siblings ...)
  2020-03-07 15:11   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
                     ` (4 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-gphoto2): New variable.
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8b3920fb00..2275373eac 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -172,6 +172,28 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-gphoto2
+  (package
+    (name "python-gphoto2")
+    (version "2.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "gphoto2" version))
+              (sha256
+               (base32
+                "118zm25c8mlajfl0pzssnwz4b8lamj9dgymla9rn4nla7l244a0r"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libgphoto2" ,libgphoto2)))
+    (home-page "https://github.com/jim-easterbrook/python-gphoto2")
+    (synopsis "Python interface to libgphoto2")
+    (description "@code{python-gphoto2} is a comprehensive Python interface
+(or binding) to @code{libgphoto2}.  It is built using @code{SWIG} to
+automatically generate the interface code.")
+    (license license:gpl3+)))
+
 (define-public python-colour
   (package
     (name "python-colour")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 07/10] gnu: Add python-pyprind
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (4 preceding siblings ...)
  2020-03-07 15:11   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Sebastian Schott
                     ` (3 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-pyprind): New variable.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2275373eac..6e42f3a70e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -172,6 +172,26 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-pyprind
+  (package
+    (name "python-pyprind")
+    (version "2.11.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "PyPrind" version))
+              (sha256
+               (base32
+                "0xg6m5hr33h9bdlrr42kc58jm2m87a9zsagy7n2m4n407d2snv64"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-psutil" ,python-psutil)))
+    (home-page "https://github.com/rasbt/pyprind")
+    (synopsis "Python Progress Bar and Percent Indicator Utility")
+    (description "The PyPrind (Python Progress Indicator) module provides a
+progress bar and a percentage indicator object that let you track the progress
+of a loop structure or other iterative computation.")
+    (license license:bsd-3)))
+
 (define-public python-gphoto2
   (package
     (name "python-gphoto2")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 08/10] gnu: Add python-colorlog
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (5 preceding siblings ...)
  2020-03-07 15:11   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
                     ` (2 subsequent siblings)
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-colorlog): New variable.
---
 gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6e42f3a70e..05c9c1e5d5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -172,6 +172,35 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-colorlog
+  (package
+    (name "python-colorlog")
+    (version "4.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "colorlog" version))
+              (sha256
+               (base32
+                "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      ;; Extend PYTHONPATH so the built package will be found.
+                      (setenv "PYTHONPATH"
+                              (string-append (getcwd) "/build/lib:"
+                                             (getenv "PYTHONPATH")))
+                      (invoke "pytest" "-p" "no:logging")
+                      #t)))))
+    (home-page "https://github.com/borntyping/python-colorlog")
+    (synopsis "Log formatting with colors for python")
+    (description "The @code{colorlog.ColoredFormatter} is a formatter for use
+with Python's logging module that outputs records using terminal colors.")
+    (license license:expat)))
+
 (define-public python-pyprind
   (package
     (name "python-pyprind")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 09/10] gnu: Add python-tenacity
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (6 preceding siblings ...)
  2020-03-07 15:11   ` [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-07 15:11   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
  2020-03-15 18:47   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Leo Famulari
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/python-xyz.scm (python-tenacity): New variable.
---
 gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 05c9c1e5d5..989469ad27 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -172,6 +172,36 @@
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26))
 
+(define-public python-tenacity
+  (package
+    (name "python-tenacity")
+    (version "6.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "tenacity" version))
+              (sha256
+               (base32
+                "1j36v9fcpmmd4985ix0cwnvcq71rkrn5cjiiv0id9vkl4kpxh0gv"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools-scm" ,python-setuptools-scm)
+       ("python-sphinx" ,python-sphinx)
+       ("python-tornado" ,python-tornado)
+       ("python-pytest" ,python-pytest)))
+    (propagated-inputs
+     `(("python-six" ,python-six)))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (invoke "pytest")
+                      #t)))))
+    (home-page "https://github.com/jd/tenacity")
+    (synopsis "Retrying library for python")
+    (description "Tenacity is a general-purpose python library to simplify the
+task of adding retry behavior to just about anything.")
+    (license license:asl2.0)))
+
 (define-public python-colorlog
   (package
     (name "python-colorlog")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (7 preceding siblings ...)
  2020-03-07 15:11   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
@ 2020-03-07 15:11   ` Sebastian Schott
  2020-03-15 18:47   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Leo Famulari
  9 siblings, 0 replies; 30+ messages in thread
From: Sebastian Schott @ 2020-03-07 15:11 UTC (permalink / raw)
  To: 39292; +Cc: Sebastian Schott

* gnu/packages/photo.scm (rapid-photo-downloader): New variable.
---
 gnu/packages/photo.scm | 94 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 94 insertions(+)

diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm
index 069767e414..585289daf1 100644
--- a/gnu/packages/photo.scm
+++ b/gnu/packages/photo.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -26,6 +27,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
+  #:use-module (guix build-system python)
   #:use-module (guix download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
@@ -37,12 +39,15 @@
   #:use-module (gnu packages boost)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages curl)
+  #:use-module (gnu packages file)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages graphics)
+  #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
@@ -56,9 +61,13 @@
   #:use-module (gnu packages popt)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages python-web)
+  #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tex)
+  #:use-module (gnu packages time)
+  #:use-module (gnu packages video)
   #:use-module (gnu packages web)
   #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages xfig)
@@ -67,6 +76,91 @@
   #:use-module ((srfi srfi-1) #:hide (zip))
   #:use-module (srfi srfi-26))
 
+(define-public rapid-photo-downloader
+  (package
+    (name "rapid-photo-downloader")
+    (version "0.9.18")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://launchpad.net/rapid/pyqt/"
+                                  version "/+download/" name "-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "15p7sssg6vmqbm5xnc4j5dr89d7gl7y5qyq44a240yl5aqkjnybw"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("file" ,file)
+       ("intltool" ,intltool)
+       ("gobject-introspection" ,gobject-introspection)))
+    (inputs
+     `(("gdk-pixbuf" ,gdk-pixbuf)
+       ("gexiv2" ,gexiv2)
+       ("gst-libav" ,gst-libav)
+       ("gst-plugins-base" ,gst-plugins-base)
+       ("gst-plugins-good" ,gst-plugins-good)
+       ("gstreamer" ,gstreamer)
+       ("libgudev" ,libgudev)
+       ("libnotify" ,libnotify)
+       ("libmediainfo" ,libmediainfo)
+       ("usdisks" ,udisks)
+       ("python-pyqt" ,python-pyqt)
+       ("python-pygobject" ,python-pygobject)
+       ("python-gphoto2" ,python-gphoto2)
+       ("python-pyzmq" ,python-pyzmq)
+       ("python-tornado" ,python-tornado)
+       ("python-psutil" ,python-psutil)
+       ("python-pyxdg" ,python-pyxdg)
+       ("python-arrow" ,python-arrow)
+       ("python-dateutil" ,python-dateutil)
+       ("python-easygui" ,python-easygui)
+       ("python-colour" ,python-colour)
+       ("python-pymediainfo" ,python-pymediainfo)
+       ("python-sortedcontainers" ,python-sortedcontainers)
+       ("python-rawkit" ,python-rawkit)
+       ("python-requests" ,python-requests)
+       ("python-colorlog" ,python-colorlog)
+       ("python-pyprind" ,python-pyprind)
+       ("python-tenacity" ,python-tenacity)
+       ("perl-image-exiftool" ,perl-image-exiftool)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-libmediainfo
+           (lambda _
+             (substitute* "raphodo/metadatavideo.py"
+               (("pymedia_library_file = 'libmediainfo.so.0'")
+                (string-append "pymedia_library_file = '"
+                               (assoc-ref %build-inputs "libmediainfo")
+                               "/lib/libmediainfo.so.0'")))
+             #t))
+         (add-after 'install 'wrap
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out               (assoc-ref outputs "out"))
+                   (path              (string-join
+                                       (list (string-append
+                                              (assoc-ref inputs "perl-image-exiftool")
+                                              "/bin"))
+                                       ":"))
+                   (gi-typelib-path   (getenv "GI_TYPELIB_PATH"))
+                   (python-path       (getenv "PYTHONPATH")))
+               (for-each
+                (lambda (program)
+                  (wrap-program program
+                    `("PATH" ":" prefix (,path))
+                    `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
+                    `("PYTHONPATH"             ":" prefix (,python-path))))
+                (map (lambda (name)
+                       (string-append out "/bin/" name))
+                     '("analyze-pv-structure"
+                       "rapid-photo-downloader"))))
+             #t)))))
+    (home-page "https://www.damonlynch.net/rapid/")
+    (synopsis "Import photos and videos from cameras, phones and memory cards")
+    (description "Import photos and videos from cameras, phones and memory
+cards and generate meaningful file and folder names.")
+    (license license:gpl2+)))
+
 (define-public libraw
   (package
     (name "libraw")
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo
  2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
                     ` (8 preceding siblings ...)
  2020-03-07 15:11   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
@ 2020-03-15 18:47   ` Leo Famulari
  2020-03-15 21:26     ` Christopher Baines
  9 siblings, 1 reply; 30+ messages in thread
From: Leo Famulari @ 2020-03-15 18:47 UTC (permalink / raw)
  To: Sebastian Schott; +Cc: 39292

On Sat, Mar 07, 2020 at 04:11:37PM +0100, Sebastian Schott wrote:
> * gnu/packages/python-xyz.scm (python-pymediainfo): New variable.

Thanks for this patch series Sebastian! Overall it looks good...

I only have one nitpick:

> +             ;; Skip the only failing test "test_parse_url"
> +             (invoke "pytest" "-vv" "-k" "not test_parse_url")
> +             #t)))))

How does the test fail? We should add comments explaining why tests are
skipped, not just that they are fail so we skip them :)

And while you are adding that comment or fixing the test, can you rebase
the patches on the current master branch? They no longer apply due to
other changes in python-xyz.scm.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo
  2020-03-15 18:47   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Leo Famulari
@ 2020-03-15 21:26     ` Christopher Baines
  2020-03-15 21:39       ` Leo Famulari
  0 siblings, 1 reply; 30+ messages in thread
From: Christopher Baines @ 2020-03-15 21:26 UTC (permalink / raw)
  To: leo; +Cc: 39292, Sebastian Schott

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]


Leo Famulari <leo@famulari.name> writes:

> On Sat, Mar 07, 2020 at 04:11:37PM +0100, Sebastian Schott wrote:
>> * gnu/packages/python-xyz.scm (python-pymediainfo): New variable.
>
> Thanks for this patch series Sebastian! Overall it looks good...
>
> I only have one nitpick:
>
>> +             ;; Skip the only failing test "test_parse_url"
>> +             (invoke "pytest" "-vv" "-k" "not test_parse_url")
>> +             #t)))))
>
> How does the test fail? We should add comments explaining why tests are
> skipped, not just that they are fail so we skip them :)

I did see this when reviewing the patches, but I didn't think to look at
it like this. It's the proper question to ask though.

Out of interest, I built the package without skipping that test, and
that failure looks related to the test trying to access the network, so
disabling it is probably justified.

> And while you are adding that comment or fixing the test, can you rebase
> the patches on the current master branch? They no longer apply due to
> other changes in python-xyz.scm.

If you have an up to date copy of master, this could be because I merged
the patches a few hours ago.

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo
  2020-03-15 21:26     ` Christopher Baines
@ 2020-03-15 21:39       ` Leo Famulari
  0 siblings, 0 replies; 30+ messages in thread
From: Leo Famulari @ 2020-03-15 21:39 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 39292, Sebastian Schott

On Sun, Mar 15, 2020 at 09:26:46PM +0000, Christopher Baines wrote:
> If you have an up to date copy of master, this could be because I merged
> the patches a few hours ago.

Oh... facepalm. Thanks Chris!

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2020-03-15 21:40 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-26 10:07 [bug#39292] [PATCH 0/10] gnu: Add rapid-photo-downloader sschott
2020-01-26 17:24 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
2020-01-27  8:39     ` Christopher Baines
2020-01-26 17:24   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
2020-01-27  8:40     ` Christopher Baines
2020-01-26 17:24   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
2020-01-26 17:24   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
2020-01-27  8:49     ` Christopher Baines
2020-01-27  8:35   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Christopher Baines
2020-02-02  9:36 ` [bug#39292] Re: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
2020-02-02 10:11   ` Christopher Baines
2020-03-07 15:11 ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 02/10] gnu: Add python-easygui Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 05/10] gnu: Add python-colour Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Sebastian Schott
2020-03-07 15:11   ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
2020-03-15 18:47   ` [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Leo Famulari
2020-03-15 21:26     ` Christopher Baines
2020-03-15 21:39       ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).