From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:56036) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivkJT-00011N-9A for guix-patches@gnu.org; Sun, 26 Jan 2020 10:59:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivkJS-0001Vh-CY for guix-patches@gnu.org; Sun, 26 Jan 2020 10:59:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivkJS-0001VN-11 for guix-patches@gnu.org; Sun, 26 Jan 2020 10:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivkJR-0005JT-RR for guix-patches@gnu.org; Sun, 26 Jan 2020 10:59:01 -0500 Subject: [bug#39292] [PATCH 0/10] gnu: Add rapid-photo-downloader Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:35203) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivepe-0005C5-Pc for guix-patches@gnu.org; Sun, 26 Jan 2020 05:07:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivepd-0006cU-T1 for guix-patches@gnu.org; Sun, 26 Jan 2020 05:07:54 -0500 Received: from mout-p-201.mailbox.org ([2001:67c:2050::465:201]:50172) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ivepd-0006U2-Ds for guix-patches@gnu.org; Sun, 26 Jan 2020 05:07:53 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4857q81hrZzQlLw for ; Sun, 26 Jan 2020 11:07:48 +0100 (CET) Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id MlTuSDFOO0cg for ; Sun, 26 Jan 2020 11:07:45 +0100 (CET) Date: Sun, 26 Jan 2020 11:07:45 +0100 (CET) From: sschott@mailbox.org Message-ID: <160809722.12896.1580033265330@office.mailbox.org> MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sschott@mailbox.org Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39292@debbugs.gnu.org
Add rapid-photo-downloader and required dependencies:

0001-gnu-Add-python-pymediainfo.patch
0002-gnu-Add-python-easygui.patch
0003-gnu-Add-python-rawkit.patch
0004-gnu-Add-python-d2to1.patch
0005-gnu-Add-python-colour.patch
0006-gnu-Add-python-gphoto2.patch
0007-gnu-Add-python-pyprind.patch
0008-gnu-Add-python-colorlog.patch
0009-gnu-Add-python-tenacity.patch
0010-gnu-Add-rapid-photo-downloader.patch

From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42414) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlff-0002Kb-0k for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlfd-0001bH-Qs for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfd-0001b9-Mw for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfd-00018c-JW for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:01 -0500 Subject: [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo References: <160809722.12896.1580033265330@office.mailbox.org> In-Reply-To: <160809722.12896.1580033265330@office.mailbox.org> Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:28 +0100 Message-Id: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42422) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlff-0002Kd-DO for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlfe-0001bq-6v for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfe-0001bT-2h for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfe-00018j-06 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:02 -0500 Subject: [bug#39292] [PATCH 02/10] gnu: Add python-easygui Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:29 +0100 Message-Id: <20200126172437.1644-2-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 * 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 ;;; Copyright © 2019 Tanguy Le Carrour ;;; Copyright © 2019 Mădălin Ionel Patrașcu +;;; Copyright © 2020 Sebastian Schott ;;; ;;; 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42451) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfg-0002Kl-8N for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlff-0001du-2A for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51443) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfe-0001dI-Ua for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfe-00018y-Rm for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:02 -0500 Subject: [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:30 +0100 Message-Id: <20200126172437.1644-3-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:50335) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivzx9-00088l-M4 for guix-patches@gnu.org; Mon, 27 Jan 2020 03:41:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivzx8-0005rZ-G7 for guix-patches@gnu.org; Mon, 27 Jan 2020 03:41:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51833) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivzx8-0005rV-DX for guix-patches@gnu.org; Mon, 27 Jan 2020 03:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivzx8-0006cK-CN for guix-patches@gnu.org; Mon, 27 Jan 2020 03:41:02 -0500 Subject: [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Resent-Message-ID: References: <20200126172437.1644-1-sschott@mailbox.org> <20200126172437.1644-3-sschott@mailbox.org> From: Christopher Baines In-reply-to: <20200126172437.1644-3-sschott@mailbox.org> Date: Mon, 27 Jan 2020 08:39:56 +0000 Message-ID: <87lfpti97n.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: sschott@mailbox.org --=-=-= Content-Type: text/plain Sebastian Schott 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") --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl4uodxfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xdd5xAAqynlt1WgNOUTVI3GM8yM5jYNq/K3buyCOVhEbLiy9/+vTwCFLiZXT10/ 7zSzad88cB4MPRiuWj8eQDDpzcyMbcVqq2rKBaisa6Vgi26ag8OmP0KUNn1GbVhz Bpq+tcLQX9bSpsXT7HjcwvrxR79tpC5/PB9y9f1RLjkzZUFbZhq49PMusp57ZtRS hvvs0ZR5W9Mx+iDputrGaEYwG49pgleMpZGf9Cm8Ft+1Yz6IVf+vKU4ajDmhEXh2 PyyPgZvOxhZ7X8ODsy735J7oFSTl9/quKNYXpddTLasG4hoEpT8O7AmXRnYvC6YN keDpf58pbS98pL3GbvkMPEu44QLkxFHBLJByfskiXXdrS+mUbF4smInD1e1CyRs7 4O6KKl0kChsMaCwrTrwAQyshPn3C5T4w3KHRi+8KhUXjiYdUFT1l7ZlZdvnVYOyV wO2Og7Tp3O+aGCReIzPkZNVvNNKZNN59m4mPd4l1nWGwLgkGMwfzaG04gC5uo3Mz 7dODe6sLmFQhCCTPcYp67mJQ9ZnLd3G2JmsA4wBZN4Qtcy8INRd/skSNKfLFB4lV 2kFRaJUB1kZUdU109d9vNoNuUvVKxymDXAg5XdKKcg9Yomn1B6bbWzNX/+qdBFmj HZikjC8/+8fRnZB6aWzv54c2mwdAIx3cAAU1TIRatEd8pYBuCjw= =oyjk -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42504) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfi-0002Mh-2o for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlfh-0001id-0n for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51448) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfg-0001i7-SH for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfg-00019Z-Q8 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Subject: [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:31 +0100 Message-Id: <20200126172437.1644-4-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42430) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlff-0002Ki-Mv for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlfe-0001cc-K4 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfe-0001c4-Fp for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfe-00018r-Ci for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:02 -0500 Subject: [bug#39292] [PATCH 05/10] gnu: Add python-colour Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:32 +0100 Message-Id: <20200126172437.1644-5-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42461) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfg-0002Ku-KZ for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlff-0001el-Ee for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlff-0001eC-An for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlff-000195-7y for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Subject: [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:33 +0100 Message-Id: <20200126172437.1644-6-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:50451) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivzy7-0008LY-2r for guix-patches@gnu.org; Mon, 27 Jan 2020 03:42:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivzy5-0006Z5-Ui for guix-patches@gnu.org; Mon, 27 Jan 2020 03:42:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51837) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivzy5-0006Z1-RU for guix-patches@gnu.org; Mon, 27 Jan 2020 03:42:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivzy5-0006dv-Ok for guix-patches@gnu.org; Mon, 27 Jan 2020 03:42:01 -0500 Subject: [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Resent-Message-ID: References: <20200126172437.1644-1-sschott@mailbox.org> <20200126172437.1644-6-sschott@mailbox.org> From: Christopher Baines In-reply-to: <20200126172437.1644-6-sschott@mailbox.org> Date: Mon, 27 Jan 2020 08:40:59 +0000 Message-ID: <87k15di95w.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/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") --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl4uohxfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XfcEQ//QmsGm1zP7d+3gDarJRA45DnCMw8IDR9wenMyjsMm2UwiahjTZwNWOwjs Gh60hZYqG40mXARF8GjMDnfOZefu6ebNG++Q/qYmjBH7sOUZwkFUqwdgDzdUSuOK 6XY6ejYdp9aem8jOl+JkfEQv7ckgo9EiVnEbyJJ/SddCNm2qo4G5GQYNIUPuq1S4 Gnec1mrydsy5CLAv7lOdUbN820vrvNj1FWmfKu94FxSHB/Bu07zhAPdx7TXvkC1y 4AMtr56RV/BucmGxkuLQ4n9saQNDUy/CU3qm/piVO+CCfXW4cBk1DwjLRW4sBLL+ Ty/F7wxftEc7oxExiSZ1CDkjYwPgI8VbmGenXrVpMW/Qm6w4TjCXkm7njWefgvPP fuNRc36qT3ff8dwhjxp+2O2R7heov3y9sRieRl9CpDil7nYFzoL/U/xngbxpjcty geF06Ry1VmfiMJn0a8Zc/v/0wNwxIeWWwRRP6UQb8DrMwn7Tdf8Vf9SEkhbY0oMq Z7gyfrFIcyLCA4Tn3Wv6+JDR2Ec/uMMmZtMghVi3IGe8eMdvAKNGrZeiB29t4nRt v9+X0JZ3GGM1noCttV3MmyBTlBLHM1cYRoOPD43YqltMyYTaskVGjxLORg9Sm3FK Wi5o2x8enUXIfubJkXUuWSDSjT7WnrTTuuG1m+wlVvivUfmq1u8= =qWrB -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42480) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfh-0002LE-7c for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlfg-0001h3-6P for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfg-0001gK-2g for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfg-00019K-0I for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Subject: [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:34 +0100 Message-Id: <20200126172437.1644-7-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42467) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfg-0002LD-RL for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlff-0001fh-QM for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlff-0001fS-N1 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlff-00019D-K8 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:03 -0500 Subject: [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:35 +0100 Message-Id: <20200126172437.1644-8-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42505) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfi-0002Mk-2g for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlfg-0001hV-Ir for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfg-0001hP-F8 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfg-00019R-CW for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:04 -0500 Subject: [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:36 +0100 Message-Id: <20200126172437.1644-9-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42529) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivlfi-0002No-Rv for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivlfh-0001ix-Bi for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51449) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivlfh-0001im-87 for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivlfh-00019g-5l for guix-patches@gnu.org; Sun, 26 Jan 2020 12:26:05 -0500 Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Resent-Message-ID: From: Sebastian Schott Date: Sun, 26 Jan 2020 18:24:37 +0100 Message-Id: <20200126172437.1644-10-sschott@mailbox.org> In-Reply-To: <20200126172437.1644-1-sschott@mailbox.org> References: <20200126172437.1644-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 * 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 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Leo Famulari +;;; Copyright © 2020 Sebastian Schott ;;; ;;; 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 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----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:49782) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ivzsL-0006Ur-4U for guix-patches@gnu.org; Mon, 27 Jan 2020 03:36:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ivzsI-00011F-T2 for guix-patches@gnu.org; Mon, 27 Jan 2020 03:36:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ivzsI-000111-LW for guix-patches@gnu.org; Mon, 27 Jan 2020 03:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ivzsI-0006Us-Ij for guix-patches@gnu.org; Mon, 27 Jan 2020 03:36:02 -0500 Subject: [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Resent-Message-ID: References: <160809722.12896.1580033265330@office.mailbox.org> <20200126172437.1644-1-sschott@mailbox.org> From: Christopher Baines In-reply-to: <20200126172437.1644-1-sschott@mailbox.org> Date: Mon, 27 Jan 2020 08:35:43 +0000 Message-ID: <87mua9i9eo.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: Sebastian Schott Cc: 39292@debbugs.gnu.org --=-=-= Content-Type: text/plain Sebastian Schott 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl4uoN9fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xch2BAApI/k0Ysw4sh+4qLYdt4I9OYEJd/Mjts0JHi5SrE3QgHpqyc6dfeJibd6 OnpdDdC7PNgHOlOs58iAPNIWxWMNwwRhOOzg/MwZSduils5ZQpmVZXgdss4MCOLW nX+6w6puMfgn43hZ/BgWPHwjL/ebmaNLT/TDDni8ef/xQT99UsHKuhPv74TZ8d0U ytANbaZPwLyzz1MeYa1R95TRmv0ho/It0mQB1kTYQgJLT0MArESbylUwqYXn6OMo UTKdG2S91ND48WZEsa0NQSF1cQJfj5YkWXJF4NVFG0ZyrAA54nq5ryFLli9zc+Po CR13TXszu5rxSyhJch/gAypPJAfoMugWjbK6m7LqTwM1O/ppda82tuZ51fd8RboU dyo6DpJLNs27GAH9VJQ60wyJ5xDQbeLiMcQm+qc6fRv4kgnVKdBDsmhfjeaTBxfU lhG96BOe/L1xKnAOs3Bn7L0VRGQmnjCkVxXyDAsvx5gy1fubABEalb5wmaxuCHju FJJKBezkWZpuenGEgHWAhqvreXYCA5ylsIBkPv4/nQDE3u1zujBhTPk9WH/QupdU mqc3+UlxFzAaSrmzOHVTyMdCU4jxXA9TWsPNeZL08rx+rbZbWsWT4eZUzjedTftS CYL489XvaoMDf2Q/F4coRSuvhnKy88RK+Bc45f4VT4H2sZuQ0W0= =7a54 -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:36128) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyBha-0003Xe-Of for guix-patches@gnu.org; Sun, 02 Feb 2020 04:38:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyBhZ-00059Z-SF for guix-patches@gnu.org; Sun, 02 Feb 2020 04:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyBhZ-000596-PR for guix-patches@gnu.org; Sun, 02 Feb 2020 04:38:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyBhZ-0001TH-Mi for guix-patches@gnu.org; Sun, 02 Feb 2020 04:38:01 -0500 Subject: [bug#39292] Re: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader References: <160809722.12896.1580033265330@office.mailbox.org> In-Reply-To: <160809722.12896.1580033265330@office.mailbox.org> Resent-Message-ID: Date: Sun, 2 Feb 2020 10:36:17 +0100 (CET) From: Sebastian Schott Message-ID: <680004635.33218.1580636177883@office.mailbox.org> MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sebastian Schott Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: "39292@debbugs.gnu.org" <39292@debbugs.gnu.org> Cc: "mail@cbaines.net"
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?

Best,

Sebastian
From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:43228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyCEW-0001qS-BA for guix-patches@gnu.org; Sun, 02 Feb 2020 05:12:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyCEU-0006Z6-AW for guix-patches@gnu.org; Sun, 02 Feb 2020 05:12:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33576) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyCEU-0006Z0-64 for guix-patches@gnu.org; Sun, 02 Feb 2020 05:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyCEU-0002GZ-17 for guix-patches@gnu.org; Sun, 02 Feb 2020 05:12:02 -0500 Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Resent-Message-ID: References: <680004635.33218.1580636177883@office.mailbox.org> From: Christopher Baines In-reply-to: <680004635.33218.1580636177883@office.mailbox.org> Date: Sun, 02 Feb 2020 11:11:16 +0100 Message-ID: <87tv49guyj.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: Sebastian Schott Cc: "39292@debbugs.gnu.org" <39292@debbugs.gnu.org> --=-=-= Content-Type: text/plain Sebastian Schott 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl42oERfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XeNiw/+O5UROrr0LXyqvHmHzas8knb5TYXC6Zy5dPr+iaPmgtgjJhEOajIjtZ6Y nNTxWLiH/QsLjo6yhNVFVE/hmYgWZDIzmSgfQtPMUaDakAfbTw1q5v1HZWDLuqAm zFE0ExmMA8vief0LW0yotiWlhd5q4CBoNa6gQLIPvY8OMhED23boPh/LTsYckH2X j0hwMVgBY62n77Y5BMG99dpBlCER4eWu4vr/p1TylghQmXpcJ3BjSDfkM/NyLs8V CbEbo2nKFGj+HBixNeU8AyS9ocQ9uumce1bBJmput7m7x2b8jU3gvLk7RksE3/Q+ RzfTCXHrABqv07AYf78OhDLO0vsLGv1BnRiuHgdMVFC2lB4AyKK6HEPosNkMegTm pH8jxbHIix/7uMV+b7C40RrsXKStPl93j58a21CK4xxJfZWsLvVTf9W7LWO3wZ/c vbNe1jUm9YqhS5NneRMdTgBzd6c8Vy7upyKUqxb9smG2dyRa459Wh2M3aOtc6noV JiLOfBkKmQgHJHBiD3/PT6n57r9lf+mFsdnRexvbngWCYfyx58bL8jZ/zVrMLCMS vuQYt6eiWIjXug2Uz/ISkmm1+RVfmhng/QIsuKZWt0Bhh2TEps6BnsVuNlPWUjt2 xtpkUixHjPN7yawlykil/GlVdbPOnmJgkQX7zQcuZLJNwfpNd8o= =T1/M -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:34380) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5uau-0003Dj-Kf for guix-patches@gnu.org; Sun, 23 Feb 2020 11:59:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5uat-0005aQ-8n for guix-patches@gnu.org; Sun, 23 Feb 2020 11:59:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5uas-0005aD-Jq for guix-patches@gnu.org; Sun, 23 Feb 2020 11:59:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5uas-0000iB-Js for guix-patches@gnu.org; Sun, 23 Feb 2020 11:59:02 -0500 Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Resent-Message-ID: Date: Sun, 23 Feb 2020 11:40:10 +0100 (CET) From: Sebastian Schott Message-ID: <1889312991.7522.1582454410688@office.mailbox.org> In-Reply-To: <87sgjtgtju.fsf@cbaines.net> References: <87sgjtgtju.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sebastian Schott Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: "39292@debbugs.gnu.org" <39292@debbugs.gnu.org> Cc: Christopher Baines Hi Chris, you are right, some libraries I added in native-inputs of rapid-photo-downloader cause trouble, e.g., I got "ValueError: Namespace Notify not available", when I try to start the program. This is a bit confusing, because before committing, I successfully tested this, but maybe I manually installed these libraries and therefore had no "clean" testing environment. Now, I experimented a bit with native-inputs, inputs and propagated-inputs and managed to start the program, when I install it with the code at the end of this mail (./pre-inst-env guix install rapid-photo-downloader). When I just build the program and cd into the store folder to run it, I still got the "notify error" (./pre-inst-env guix build rapid-photo-downloader --> cd /gnu/store/.../bin --> ./rapid-photo-downloader). This makes sense, because without installing the program, also the propagated-inputs are not installed. What is the recommended way to test a program without interfering with the current user profile, but still considering propagated-inputs? You mentioned inputs are used for libraries required at runtime. Now I wonder, why I need to put libnotify, libgudev, usdisks and gexiv2 into the propagated-inputs to avoid errors like "ValueError: Namespace Notify not available"? Best, Sebastian (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) )) (inputs `(("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) ("perl-image-exiftool" ,perl-image-exiftool) ("libnotify" ,libnotify) ("libgudev" ,libgudev) ("usdisks" ,udisks) ("gexiv2" ,gexiv2) )) (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)) ))) (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+))) From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47267) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6KUN-0007Mr-N3 for guix-patches@gnu.org; Mon, 24 Feb 2020 15:38:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6KUM-0006Lm-Bm for guix-patches@gnu.org; Mon, 24 Feb 2020 15:38:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6KUM-0006Lf-7J for guix-patches@gnu.org; Mon, 24 Feb 2020 15:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j6KUM-0004df-37 for guix-patches@gnu.org; Mon, 24 Feb 2020 15:38:02 -0500 Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Resent-Message-ID: References: <87sgjtgtju.fsf@cbaines.net> <1889312991.7522.1582454410688@office.mailbox.org> From: Christopher Baines Date: Sun, 23 Feb 2020 16:55:22 +0000 Message-ID: <87v9nxi6px.fsf@cbaines.net> In-reply-to: <1889312991.7522.1582454410688@office.mailbox.org> 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: Sebastian Schott Cc: "39292@debbugs.gnu.org" <39292@debbugs.gnu.org> --=-=-= Content-Type: text/plain Sebastian Schott writes: > Hi Chris, > > you are right, some libraries I added in native-inputs of > rapid-photo-downloader cause trouble, e.g., I got "ValueError: > Namespace Notify not available", when I try to start the program. This > is a bit confusing, because before committing, I successfully tested > this, but maybe I manually installed these libraries and therefore had > no "clean" testing environment. > > Now, I experimented a bit with native-inputs, inputs and > propagated-inputs and managed to start the program, when I install it > with the code at the end of this mail (./pre-inst-env guix install > rapid-photo-downloader). When I just build the program and cd into the > store folder to run it, I still got the "notify error" (./pre-inst-env > guix build rapid-photo-downloader --> cd /gnu/store/.../bin --> > ./rapid-photo-downloader). This makes sense, because without > installing the program, also the propagated-inputs are not installed. > > What is the recommended way to test a program without interfering with > the current user profile, but still considering propagated-inputs? Probably using guix environment --ad-hoc, although to set up the right search paths, you'll need to also include some other packages in the environment. Propagated inputs with search paths are great for things like plugins, and programming language libraries, but for improved reliability and compatibility, they should be avoided for applications like Rapid Photo Downloader. > You mentioned inputs are used for libraries required at runtime. Now I > wonder, why I need to put libnotify, libgudev, usdisks and gexiv2 into > the propagated-inputs to avoid errors like "ValueError: Namespace > Notify not available"? Probably because of a search path like GI_TYPELIB_PATH. I've taken an earlier version of your patch, and tweaked it [1] so that I can start the application directly from the store (running [2]). 1: https://git.cbaines.net/guix/commit/?h=series-2725-tweaked&id=85613884ac9c4122460923aaf1e28ef13aab49df 2: /gnu/store/6ssz223fy59cpz3582jd3xqva49m9w8n-rapid-photo-downloader-0.9.18/bin/rapid-photo-downloader If you take a look at that file [2], you'll see it's a bash script, which sets a number of environment variables. This comes from the wrap-program call in the patch [1]. Now using wrap-program is not an ideal technique, but what I think this approach does provide is that it reduces the chance of other things in your profile breaking rapid-photo-downloader, and it also means that you can install another application that also uses a common dependency, but has a different version of it, or a patched version, without running in to difficulties combining both packages in to one profile. Does that make sense? Thanks, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl5UM/1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XfG3A/8CRrUl/cOCdoBgmCr2X5t4jnq/Y+JHOaj3zR+xz2DEkZoLWd334F2WZNQ V6ww7/wsSpr4rlgz5VV8Db2uZDeeowWjLzEbGax/TsTT745HBx6GRkrvNYPdeBvs 2k1ZBXJb6CdaV1LyyspXTONY3oOlP//9FfeLU1mPws1P5hN4gAHRXwKTJB9iYQIZ XzpGGOEOj+YMRuR8rBueFJM60oAO7gfVnpzzry7YcVWCNm7hIJ9Irn/hDMZZTZho PBIxH2+1/7yriG+u/zsK6is1QaCCeXe66SxRF2pWcHr3pJvuBRjK5ZWkb1OA9DM7 ygHzapSoRPQo4XJCIm7h+nT7zZClw7ezBeLqa+hZjgSTxV6y+RpPYwlLmdq3HO/l vkjVgHvS5nyjGuE6GzyKJX6e2Tw1H7KMY2BEM4Rs0XLWqJ9gDVvbHC9q0qqN64B+ 7bDBa/qFzdshQB9sf+UckyPzoRCpCnC4C01R/oRfkl1f2zY45PZ5yQumdsmyLb0P 31YjJnsVz9fVpVzv79rU2Dcg7rEDOvmZ4InT08X3pco1X8QkAhqZUfhNEY+QQw42 ikptKJ0x4SIt0PGrCUGv+bibowBMY9w1il7dr7onUwtk0xbZImTJEwlvXReS0/SE orkib5CLdJAI5g5FzXnFNNXvrL1uS9sNADl62vosUM2fFtEXkRs= =Z2x6 -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58843) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8R-0000LW-Oi for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8Q-0006kB-FK for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8Q-0006k7-Bi for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8Q-0005SK-7x for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:02 -0500 Subject: [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo References: <160809722.12896.1580033265330@office.mailbox.org> In-Reply-To: <160809722.12896.1580033265330@office.mailbox.org> Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:37 +0100 Message-Id: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 * 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 ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 sirgazil +;;; Copyright © 2020 Sebastian Schott ;;; ;;; 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58847) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8R-0000LX-V4 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8Q-0006l3-Rr for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8Q-0006kt-Ob for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8Q-0005SS-Kw for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:02 -0500 Subject: [bug#39292] [PATCH 02/10] gnu: Add python-easygui Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:38 +0100 Message-Id: <20200307151146.2581-2-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58875) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8S-0000LZ-Q9 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8R-0006ny-OF for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8R-0006nq-Kc for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8R-0005Sg-Fp for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:03 -0500 Subject: [bug#39292] [PATCH 03/10] gnu: Add python-rawkit Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:39 +0100 Message-Id: <20200307151146.2581-3-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58861) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8S-0000LY-DA for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8R-0006nB-9S for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8R-0006mf-5Q for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8R-0005SZ-1O for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:03 -0500 Subject: [bug#39292] [PATCH 04/10] gnu: Add python-d2to1 Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:40 +0100 Message-Id: <20200307151146.2581-4-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58887) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8T-0000Li-5h for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8S-0006p8-4v for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8S-0006oz-1R for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8R-0005Sp-Ti for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:03 -0500 Subject: [bug#39292] [PATCH 05/10] gnu: Add python-colour Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:41 +0100 Message-Id: <20200307151146.2581-5-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58923) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8U-0000M7-AT for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8T-0006rW-9r for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8T-0006rN-6i for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8T-0005TD-3F for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Subject: [bug#39292] [PATCH 06/10] gnu: Add python-gphoto2 Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:42 +0100 Message-Id: <20200307151146.2581-6-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58903) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8T-0000Lr-KY for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8S-0006q7-HO for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41403) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8S-0006pm-EE for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8S-0005Sy-AI for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Subject: [bug#39292] [PATCH 07/10] gnu: Add python-pyprind Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:43 +0100 Message-Id: <20200307151146.2581-7-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58954) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8V-0000O0-90 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8U-0006tM-6N for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8U-0006t8-2c for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8T-0005TS-Uv for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Subject: [bug#39292] [PATCH 08/10] gnu: Add python-colorlog Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:44 +0100 Message-Id: <20200307151146.2581-8-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58918) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8U-0000Ly-4I for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8S-0006qf-UR for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8S-0006qL-Qm for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8S-0005T5-NA for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:04 -0500 Subject: [bug#39292] [PATCH 09/10] gnu: Add python-tenacity Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:45 +0100 Message-Id: <20200307151146.2581-9-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 * 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58951) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb8V-0000Nw-7n for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb8T-0006t1-Nf for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb8T-0006sh-K5 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb8T-0005TK-G8 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:13:05 -0500 Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Resent-Message-ID: From: Sebastian Schott Date: Sat, 7 Mar 2020 16:11:46 +0100 Message-Id: <20200307151146.2581-10-sschott@mailbox.org> In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> References: <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 * 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 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Leo Famulari +;;; Copyright © 2020 Sebastian Schott ;;; ;;; 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37288) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDYIt-0000Pz-JA for guix-patches@gnu.org; Sun, 15 Mar 2020 14:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDYIs-0007Bb-IW for guix-patches@gnu.org; Sun, 15 Mar 2020 14:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57843) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDYIs-00079K-Cd for guix-patches@gnu.org; Sun, 15 Mar 2020 14:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDYIs-0004kZ-AP for guix-patches@gnu.org; Sun, 15 Mar 2020 14:48:02 -0400 Subject: [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Resent-Message-ID: Date: Sun, 15 Mar 2020 14:47:28 -0400 From: Leo Famulari Message-ID: <20200315184728.GG5561@jasmine.lan> References: <160809722.12896.1580033265330@office.mailbox.org> <20200307151146.2581-1-sschott@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200307151146.2581-1-sschott@mailbox.org> 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: Sebastian Schott Cc: 39292@debbugs.gnu.org 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. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:41733) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDaml-000516-55 for guix-patches@gnu.org; Sun, 15 Mar 2020 17:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDamj-0001bq-Vq for guix-patches@gnu.org; Sun, 15 Mar 2020 17:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDamj-0001Z6-QO for guix-patches@gnu.org; Sun, 15 Mar 2020 17:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDamj-0000hL-Km for guix-patches@gnu.org; Sun, 15 Mar 2020 17:27:01 -0400 Subject: [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Resent-Message-ID: References: <160809722.12896.1580033265330@office.mailbox.org> <20200307151146.2581-1-sschott@mailbox.org> <20200315184728.GG5561@jasmine.lan> From: Christopher Baines In-reply-to: <20200315184728.GG5561@jasmine.lan> Date: Sun, 15 Mar 2020 21:26:46 +0000 Message-ID: <87o8sxcns9.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: leo@famulari.name Cc: 39292@debbugs.gnu.org, Sebastian Schott --=-=-= Content-Type: text/plain Leo Famulari 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl5unZZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XedCA/+MUC/IRAycvejXz5WIjtbqJm9HjdP2782lX5JZ22i1qbR5ohmnfD1I7dX sKEw0seckn9JG3bsUrfAii4m0msw+SEUOtiy/GB7hxzLVFVIl4bsfA4cOs4e3E0Q 9awk90NcJDTn87IHFkUgsCzkKCT4xPVt7DMMupd5qM+XUuG3bgBWu5QnTc+8i97Q WyNgSgfO4lF7ZM0H0XOYaGlNMkdDNASsgs3ahOvjp4GBOTFnIRQHFtePrwTb8JDK iX7OSnkbiqJFwEug3XAyO1v5Dv9xYp/PpZ8xbhtkXixvwKluZil3PGUOJtJP0SwG WMvWoGxIss/jz/Fftd4amzVJFEUM+bUYdpl6TJiZw3mEn9xHdIa1dK2WCEeiAHzs HxgLwgCL2YotiTFQ42p0sefEsU3sh/tC7e4vQJyJxGeWOAhqJz1MWbTrPCef8dvc 6fjHp6vXl2WnnjG7TIQrT2eyCoYa6u/8T+RVDXjCsEQJP6+TLDVT215VkbWKB9df 7Z+bZ2ItqrVIXXWFj78BWtPI+2rcBxi9wn76ZxpDimJN6X24STUxUuKj/Qi4hy61 lKS1wVldQHV3j/w1c8x0Jaq8Ezra70C5Ki/uezwZ66pVX1Mx5R3EZrXZhsmg3CKF GIRkmD/6c/VIVWTSz/KryX9+LGKtHYgXCF3eGVs7aeckXaS9ip8= =1dEr -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:34270) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDazO-0001Mr-Rq for guix-patches@gnu.org; Sun, 15 Mar 2020 17:40:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDazM-0004QI-Oy for guix-patches@gnu.org; Sun, 15 Mar 2020 17:40:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57995) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDazJ-0004Nb-NU for guix-patches@gnu.org; Sun, 15 Mar 2020 17:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDazJ-00013A-LG for guix-patches@gnu.org; Sun, 15 Mar 2020 17:40:01 -0400 Subject: [bug#39292] [PATCH 01/10] gnu: Add python-pymediainfo Resent-Message-ID: Date: Sun, 15 Mar 2020 17:39:07 -0400 From: Leo Famulari Message-ID: <20200315213907.GA3444@jasmine.lan> References: <160809722.12896.1580033265330@office.mailbox.org> <20200307151146.2581-1-sschott@mailbox.org> <20200315184728.GG5561@jasmine.lan> <87o8sxcns9.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o8sxcns9.fsf@cbaines.net> 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: Christopher Baines Cc: 39292@debbugs.gnu.org, 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! From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58297) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAb5X-0008Ox-GZ for guix-patches@gnu.org; Sat, 07 Mar 2020 10:10:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAb5W-0002Gm-I5 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:10:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAb5W-0002GX-EA for guix-patches@gnu.org; Sat, 07 Mar 2020 10:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAb5W-0005LR-A4 for guix-patches@gnu.org; Sat, 07 Mar 2020 10:10:02 -0500 Subject: [bug#39292] [PATCH 10/10] gnu: Add rapid-photo-downloader Resent-Message-ID: Date: Sat, 7 Mar 2020 16:09:01 +0100 (CET) From: Sebastian Schott Message-ID: <654460784.5133.1583593741649@office.mailbox.org> In-Reply-To: <87v9nxi6px.fsf@cbaines.net> References: <87sgjtgtju.fsf@cbaines.net> <1889312991.7522.1582454410688@office.mailbox.org> <87v9nxi6px.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sebastian Schott Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Christopher Baines Cc: "39292@debbugs.gnu.org" <39292@debbugs.gnu.org> Hi Chris, thank you for the "guix environment --ad-hoc" hint and for implementing the wrapping technique. I revised all commits regarding to your suggestions and will upload the new patches soon. Best, Sebastian