From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uAI+KguOKGC2QwAA0tVLHw (envelope-from ) for ; Sun, 14 Feb 2021 02:42:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AE4JJguOKGDMCQAA1q6Kng (envelope-from ) for ; Sun, 14 Feb 2021 02:42:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E0CA31BADC for ; Sun, 14 Feb 2021 03:42:18 +0100 (CET) Received: from localhost ([::1]:55044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB7MX-0000y6-PV for larch@yhetil.org; Sat, 13 Feb 2021 21:42:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB7MI-0000wy-BE for guix-patches@gnu.org; Sat, 13 Feb 2021 21:42:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lB7MI-0003iX-4A for guix-patches@gnu.org; Sat, 13 Feb 2021 21:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lB7MI-0004vb-1O for guix-patches@gnu.org; Sat, 13 Feb 2021 21:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46393] [PATCH] gnu: Add ocrfeeder Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Feb 2021 02:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46393 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46393@debbugs.gnu.org Received: via spool by 46393-submit@debbugs.gnu.org id=B46393.161327050618918 (code B ref 46393); Sun, 14 Feb 2021 02:42:01 +0000 Received: (at 46393) by debbugs.gnu.org; 14 Feb 2021 02:41:46 +0000 Received: from localhost ([127.0.0.1]:35306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB7Lw-0004uw-T8 for submit@debbugs.gnu.org; Sat, 13 Feb 2021 21:41:46 -0500 Received: from mail-io1-f41.google.com ([209.85.166.41]:38159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB7Lv-0004ui-2Z for 46393@debbugs.gnu.org; Sat, 13 Feb 2021 21:41:40 -0500 Received: by mail-io1-f41.google.com with SMTP id f6so3345281ioz.5 for <46393@debbugs.gnu.org>; Sat, 13 Feb 2021 18:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=Vj0HZpE0RnRaGUWlxyOHJYNkX+6Ex3WmjG0WWTW5BHg=; b=DZ5YPww2bEklmyd+J1CmYhuXfGf45OOmPbaREoYN9ofzvY15rjlQcT0q98RsxnPK+G bDB32afcAEM4ChSZhmBqzeGfCWC6Iaq/YxxJLvWu/uu+MzSHgw+I092FAUWVmQksrmRh KljuClHsOoZLo1otdqAyuiVRZWa80+rr1eFaeErhEF3+Z4V69TXMnwiYwisLIzfwQW6t p1E6TUaBz9qd0IIvmOP5QCNkxVpMPx8XomVQ/rWgzbegOhDlITiA1EDGY6Q0ojrkrz0s 7jrW3juHwnsXMB2IhOyHLaErU7+ES1jqfd9jPe5DjdnCL6V/74W02CacsB57Q3wIte2c jtVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=Vj0HZpE0RnRaGUWlxyOHJYNkX+6Ex3WmjG0WWTW5BHg=; b=hu7MiCP9UrNEt1dAGBdRuqB2XnvuHuk7k2HlzejJJPLWze/HwA4V09BynDNEn49WQO XcCKcXoqms1uJwDI3olwvUeFSQuVly+Tqyd7G802JmGGp3mX63VkGwwrzjJ/SYYHQNiY qB3wUi01mdGz2svPqE8Ce5h/c1uW43pPf66+FYhVDUUIaXfKljbxw/0uYYY6dklqjn/Y a0ECDE13iGGm0ywggJMKs3hV5x5HIyQN3R7WyOY+UPwTgeAaPy4WI3sy6lfNkCHdyegX YcXbQDoVx7ivLPWSF8gXevtr4MjUdO3qbF7PmEoj+cQKholfKiIQG/Wco7dHqktOELnK y9HQ== X-Gm-Message-State: AOAM530SzQjAr2MhjigOlVUj1VMTrM+hHToAguZJADgbBZh3mUBOIqDt ywRm5jy02VwdIdfsaluAvOIECXqUURtuWg3QDL5kReu7RHtgRg== X-Google-Smtp-Source: ABdhPJytBpfmA6v9FzbpU7/8BOtA+c4dm24XyWQWQS8/Y2LH86kHvrEPiM8NhD4FKCqfPz+aD61nfAOTRQB7ek9TVcw= X-Received: by 2002:a6b:5002:: with SMTP id e2mr7629909iob.152.1613270493172; Sat, 13 Feb 2021 18:41:33 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andy Tai Date: Sat, 13 Feb 2021 18:40:57 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=atai-org.20150623.gappssmtp.com header.s=20150623 header.b=DZ5YPww2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E0CA31BADC X-Spam-Score: -1.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: b+4qjY2ValOq * gnu/packages/gnome.scm (ocrfeeder): New variable * gnu/packages/python-xyz.scm (python-sane): New variable --- gnu/packages/gnome.scm | 67 ++++++++++++++++++++++++++++++++++++- gnu/packages/python-xyz.scm | 25 ++++++++++++++ 2 files changed, 91 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 0f0b7c8157..be6e825ddd 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -56,7 +56,7 @@ ;;; Copyright =C2=A9 2020 Arun Isaac ;;; Copyright =C2=A9 2020 Michael Rohleder ;;; Copyright =C2=A9 2020 Tim Gesthuizen -;;; Copyright =C2=A9 2020 Andy Tai +;;; Copyright =C2=A9 2020, 2021 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -149,6 +149,7 @@ #:use-module (gnu packages ninja) #:use-module (gnu packages node) #:use-module (gnu packages nss) + #:use-module (gnu packages ocr) #:use-module (gnu packages openldap) #:use-module (gnu packages package-management) #:use-module (gnu packages password-utils) @@ -12034,3 +12035,67 @@ for the GNOME 3.x platform with many features. It aims to be a very complete editing environment for translation issues within the GNU gettext/GNOME de= sktop world.") (license license:gpl3+))) + + +(define-public ocrfeeder + (package + (name "ocrfeeder") + (version "0.8.3") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/ocrfeeder/" + (version-major+minor version) "/" + "ocrfeeder-" version ".tar.xz")) + (sha256 + (base32 + "12f5gnq92ffnd5zaj04df7jrnsdz1zn4zcgpbf5p9qnd21i2y529")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after + 'install 'wrap-program + (lambda* (#:key outputs #:allow-other-keys) + (let ((prog (string-append (assoc-ref outputs "out") + "/bin/" "ocrfeeder")) + (pylib (string-append (assoc-ref outputs "out") + "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages"))) + (wrap-program prog + `("PYTHONPATH" =3D (,(getenv "PYTHONPATH") ,pylib)) + `("GI_TYPELIB_PATH" =3D (,(getenv "GI_TYPELIB_PATH")))) + #t))) + ))) + (native-inputs + `(("glib:bin" ,glib "bin") ; for glib-compile-resou= rces + ("gobject-introspection" ,gobject-introspection) + ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-ca= che + ("intltool" ,intltool) + ("itstool" ,itstool) + ("pkg-config" ,pkg-config) + ("xmllint" ,libxml2))) + (inputs + `(("enchant" ,enchant) + ("glib" ,glib) + ("goocanvas" ,goocanvas) + ("gtk" ,gtk+) + ("gtkspell3" ,gtkspell3) + ("libjpeg" ,libjpeg-turbo) + ("libtiff" ,libtiff) + ("libraw" ,libraw) + ("ocrad" ,ocrad) + ("python" ,python-wrapper) + ("python-pygobject" ,python-pygobject) + ("python-odfpy" ,python-odfpy) + ("python-pillow" ,python-pillow) + ("python-pyenchant" ,python-pyenchant) + ("python-reportlab" ,python-reportlab) + ("python-sane" ,python-sane) + ("sane-backends" ,sane-backends) + ("tesseract-ocr" ,tesseract-ocr))) + (home-page "https://wiki.gnome.org/Apps/OCRFeeder") + (synopsis "A Complete OCR Suite") + (description "OCRFeeder is a complete Optical Character Recognition and Document Analysis and Recognition program") + (license license:gpl3+))) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e879742e5f..1c9bb2f77d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -96,6 +96,7 @@ ;;; Copyright =C2=A9 2020, 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright =C2=A9 2021 Morgan Smith ;;; Copyright =C2=A9 2020 EuAndreh +;;; Copyright =C2=A9 2021 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -179,6 +180,7 @@ #:use-module (gnu packages readline) #:use-module (gnu packages sdl) #:use-module (gnu packages search) + #:use-module (gnu packages scanner) #:use-module (gnu packages shells) #:use-module (gnu packages sphinx) #:use-module (gnu packages ssh) @@ -23735,3 +23737,26 @@ implementations.") "Pivy provides python bindings for Coin, a 3D graphics library with = an Application Programming Interface based on the Open Inventor 2.1 API.") (license license:isc))) + + + +(define-public python-sane + (package + (name "python-sane") + (version "2.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri name version)) + (sha256 + (base32 + "1pi597z94n2mkd821ln52fq0g727n2jxfskf280ip3kf7jw8w294")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (inputs + `(("sane-backends" ,sane-backends))) + (home-page "https://github.com/python-pillow/Sane") + (synopsis "Python interface to the SANE scanner") + (description "Python interface to the SANE scanner and frame grabber interface for Linux") + (license license:expat))) \ No newline at end of file --=20 2.30.0