all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 39292@debbugs.gnu.org
Cc: Sebastian Schott <sschott@mailbox.org>
Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader
Date: Mon, 27 Jan 2020 08:49:11 +0000	[thread overview]
Message-ID: <87imkxi8s8.fsf@cbaines.net> (raw)
In-Reply-To: <20200126172437.1644-10-sschott@mailbox.org>

[-- 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 --]

  reply	other threads:[~2020-01-27  8:50 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
     [not found] <87sgjtgtju.fsf@cbaines.net>
2020-02-23 10:40 ` [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Sebastian Schott
2020-02-23 16:55   ` Christopher Baines
2020-03-07 15:09     ` Sebastian Schott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87imkxi8s8.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=39292@debbugs.gnu.org \
    --cc=sschott@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.