From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggsout.gnu.org ([209.51.188.92]:53504 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gg1py-0000An-A6 for guix-patches@gnu.org; Sun, 06 Jan 2019 01:23:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gg1pv-0001EF-5Q for guix-patches@gnu.org; Sun, 06 Jan 2019 01:23:06 -0500 Received: from debbugsout.gnu.org ([209.51.188.43]:52268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gg1pv-0001Dt-2G for guix-patches@gnu.org; Sun, 06 Jan 2019 01:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gg1pu-0007bq-J2 for guix-patches@gnu.org; Sun, 06 Jan 2019 01:23:02 -0500 Subject: [bug#33994] [PATCH] gnu: python-pillow: Update to 5.4.0 Resent-Message-ID: Received: from eggsout.gnu.org ([209.51.188.92]:53294 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gg1ot-00006y-MY for guix-patches@gnu.org; Sun, 06 Jan 2019 01:22:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gg1oq-0000ge-I1 for guix-patches@gnu.org; Sun, 06 Jan 2019 01:21:59 -0500 Received: from mout01.posteo.de ([185.67.36.65]:39300) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gg1oq-0000er-5g for guix-patches@gnu.org; Sun, 06 Jan 2019 01:21:56 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 770A416005D for ; Sun, 6 Jan 2019 07:21:53 +0100 (CET) From: Kei Kebreau Date: Sun, 6 Jan 2019 01:21:45 -0500 Message-Id: <20190106062145.9143-1-kkebreau@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: 33994@debbugs.gnu.org Cc: Kei Kebreau * gnu/packages/python.scm (python-pillow): Update to 5.4.0. [arguments]: Add 'patch-ldconfig' phase. [home-page]: Update URL. --- gnu/packages/python.scm | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ad5c56427..d7d6d1b8b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4151,17 +4151,17 @@ the OleFileIO module from PIL, the Python Image L= ibrary.") (define-public python-pillow (package (name "python-pillow") - (version "5.2.0") + (version "5.4.0") (source (origin (method url-fetch) (uri (pypi-uri "Pillow" version)) (sha256 (base32 - "1ary9mj2ddllq3lkxgn6aac7qxqiwbcg2pacrl94py58ql9x9czq")))) + "0qrkcjszym7ixffg5zphhp8a07w8w11yyc2ylcbdrhwm771z316m")))) (build-system python-build-system) (native-inputs - `(("python-pytest" ,python-pytest))) + `(("python-pytest" ,python-pytest))) (inputs `(("freetype" ,freetype) ("lcms" ,lcms) @@ -4173,19 +4173,22 @@ the OleFileIO module from PIL, the Python Image L= ibrary.") (propagated-inputs `(("python-olefile" ,python-olefile))) (arguments - `(#:phases (modify-phases %standard-phases - (add-after - 'install 'check-installed - (lambda* (#:key outputs inputs #:allow-other-keys) - (begin - (setenv "HOME" (getcwd)) - ;; Make installed package available for running t= he - ;; tests - (add-installed-pythonpath inputs outputs) - (invoke "python" "selftest.py" "--installed") - (invoke "python" "-m" "pytest" "-vv")))) - (delete 'check)))) - (home-page "https://pypi.python.org/pypi/Pillow") + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-ldconfig + (lambda _ + (substitute* "setup.py" + (("\\['/sbin/ldconfig', '-p'\\]") "['true']")))) + (delete 'check) ; We must run checks after python-pillow is ins= talled. + (add-after 'install 'check-installed + (lambda* (#:key outputs inputs #:allow-other-keys) + (begin + (setenv "HOME" (getcwd)) + ;; Make installed package available for running the tests= . + (add-installed-pythonpath inputs outputs) + (invoke "python" "selftest.py" "--installed") + (invoke "python" "-m" "pytest" "-vv"))))))) + (home-page "https://python-pillow.org") (synopsis "Fork of the Python Imaging Library") (description "The Python Imaging Library adds image processing capabilities to y= our --=20 2.20.1