From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:51346) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw05r-0002X3-7X for guix-patches@gnu.org; Mon, 27 Jan 2020 03:50:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw05p-0005HR-Ph for guix-patches@gnu.org; Mon, 27 Jan 2020 03:50:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iw05p-0005HL-MN for guix-patches@gnu.org; Mon, 27 Jan 2020 03:50:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iw05p-0006pb-KX for guix-patches@gnu.org; Mon, 27 Jan 2020 03:50:01 -0500 Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Resent-Message-ID: References: <20200126172437.1644-1-sschott@mailbox.org> <20200126172437.1644-10-sschott@mailbox.org> From: Christopher Baines In-reply-to: <20200126172437.1644-10-sschott@mailbox.org> Date: Mon, 27 Jan 2020 08:49:11 +0000 Message-ID: <87imkxi8s8.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39292@debbugs.gnu.org Cc: Sebastian Schott --=-=-= Content-Type: text/plain Sebastian Schott 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl4upAdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xdetw//ZNbhhAkU4678oaHyx1mmhYzgOrIyniVFMHOd7jYqbDHQBaetTzvTWFLo qkKhcyBqFEpFpM4z156CEcOl1kQ74yzQn6YuDVSGoWFY361O22jew4DayiQVRtHZ pkh+usfpkvqcJ/P0OFMc47Y+OQAshbM2NkWkO1xIF2bMyrRj8IbZMxWsRpZdoKHk FGr8qeTbMajEmbw+yA6biD3uSE4+CeJGoAsJwWWLKkl1QShp4hSSLPDSoN7gJd2k XnfCSFEHbDpEWLcD1vMUazoqKvs0zVn/DR3AMC4fMkdXYvkcA9AOepIj4jx96Peg rzmwCRaXHwTAxLzprzM2WBxlmy4SntY1bd+JW9Xh2j1lHFvzMGoccz3qwac9XJXz Xnu0ixiReifQfwZweOcGf2OwztiZQ77d6cuk/hQjqBZ2kquhfi6pfjxNLhh8rUD7 QbxA8lXTKp0fuaP2zMPOqqtoB3wepKe7HgGwVQqwECyQrHHRNnr7J9jJQBxeFBaG OPir5oLE2T7zTGHxkWQL5mtkzlvsW++JD+ahRiPCjZvMDaX+70RDUBom/e0hfEsD 342oXGSdH/akTBPaL2eQ+1Xr44uSCx0I0gGqhCcbwNL1kiIIbo5ZQ7RNxr+aAasU 2OjDojjPRlrXq/3acSd8KhJcLzfkSqxXmqAJJgEHtR0aIRSsLFs= =UB7A -----END PGP SIGNATURE----- --=-=-=--