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----- --=-=-=--