From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45083) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i06yN-0000MR-Kx for guix-patches@gnu.org; Tue, 20 Aug 2019 12:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i06yM-0002ba-Jp for guix-patches@gnu.org; Tue, 20 Aug 2019 12:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i06yM-0002bL-G9 for guix-patches@gnu.org; Tue, 20 Aug 2019 12:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i06yM-0001pL-CY for guix-patches@gnu.org; Tue, 20 Aug 2019 12:27:02 -0400 Subject: [bug#37098] [PATCH 02/20] gnu: Add python2-zinnia. References: <864l2bx2yz.fsf@gmail.com> In-Reply-To: <864l2bx2yz.fsf@gmail.com> Resent-Message-ID: From: Alex Vong Date: Wed, 21 Aug 2019 00:26:26 +0800 Message-ID: <86y2znu7kd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; 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: 37098@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-gnu-Add-python2-zinnia.patch Content-Transfer-Encoding: quoted-printable From=200126c99dc0261c2f8d691e825f6c1ef0e99fa9d6 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Tue, 6 Aug 2019 23:52:41 +0800 Subject: [PATCH 02/20] gnu: Add python2-zinnia. * gnu/packages/ocr.scm (python2-zinnia): New variable. =2D-- gnu/packages/ocr.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/ocr.scm b/gnu/packages/ocr.scm index 14ea7e443b..1266e7e419 100644 =2D-- a/gnu/packages/ocr.scm +++ b/gnu/packages/ocr.scm @@ -25,7 +25,9 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (gnu packages compression) + #:use-module (gnu packages python) #:use-module (gnu packages image)) =20 (define-public ocrad @@ -131,3 +133,21 @@ that allows us to create any hand-written recognition = systems with low-cost.") "file://zinnia/aclocal.m4") license:x11 ; 'install-sh' license:public-domain))))) ; 'install-sh' + +;;; python 2 bindings, license under the same terms as zinnia +(define-public python2-zinnia + (package + (inherit zinnia) + (name "python2-zinnia") + (build-system python-build-system) + (arguments + `(#:python ,python-2 ; CObject API is used, it was removed in Python = 3.2 + #:tests? #f ; avoid circular dependency on tegaki-zinnia-japanese + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "zinnia/python") + #t))))) + (inputs + `(("zinnia" ,zinnia))))) =2D-=20 2.22.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwb8uPLAHCXSnTBVZh71Au9gJS8gUCXVwfMgAKCRBh71Au9gJS 8tVgAPwLO2A9UsC2loEf7S0IX8xXDl9gulRHVsPQwdfw2xqDhwD+LztTbbIDOXhn PBPzsfK+oPpRv7M8ijBcMx/TYzRCCQY= =hyc6 -----END PGP SIGNATURE----- --==-=-=--