From patchwork Fri Mar 31 10:09:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 48849 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 79726172B5; Fri, 31 Mar 2023 11:10:43 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AC74F172B1 for ; Fri, 31 Mar 2023 11:10:41 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piBhs-0006bT-Ad; Fri, 31 Mar 2023 06:10:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piBhq-0006b0-K3 for guix-patches@gnu.org; Fri, 31 Mar 2023 06:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1piBhq-0003x1-BK for guix-patches@gnu.org; Fri, 31 Mar 2023 06:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1piBhq-0000mE-68 for guix-patches@gnu.org; Fri, 31 Mar 2023 06:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62568] [PATCH] gnu: Add python-pyoo. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 31 Mar 2023 10:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62568 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62568@debbugs.gnu.org Cc: ngraves@ngraves.fr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16802573682892 (code B ref -1); Fri, 31 Mar 2023 10:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Mar 2023 10:09:28 +0000 Received: from localhost ([127.0.0.1]:60416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piBhI-0000ka-0Y for submit@debbugs.gnu.org; Fri, 31 Mar 2023 06:09:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:43328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piBhF-0000kS-N2 for submit@debbugs.gnu.org; Fri, 31 Mar 2023 06:09:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piBhF-0006QZ-Cb for guix-patches@gnu.org; Fri, 31 Mar 2023 06:09:25 -0400 Received: from 3.mo550.mail-out.ovh.net ([46.105.60.232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piBhD-0003r1-5v for guix-patches@gnu.org; Fri, 31 Mar 2023 06:09:24 -0400 Received: from director4.ghost.mail-out.ovh.net (unknown [10.108.20.214]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 9EA6625D97 for ; Fri, 31 Mar 2023 10:09:20 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-wdnjd (unknown [10.110.115.71]) by director4.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 480BD1FD36; Fri, 31 Mar 2023 10:09:20 +0000 (UTC) Received: from ngraves.fr ([37.59.142.98]) by ghost-submission-6684bf9d7b-wdnjd with ESMTPSA id 02D0DVCxJmQMeAAAPatwQQ (envelope-from ); Fri, 31 Mar 2023 10:09:20 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-98R0020a03c8c0-d414-4123-aa7a-1cf2722c5ed0, 6EDB0577B4A4070ED54A7D4BC3C99A904D58EC0F) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 Date: Fri, 31 Mar 2023 12:09:13 +0200 Message-Id: <20230331100913.4046-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Ovh-Tracer-Id: 12776712143790269154 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeiuddgvdduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhephefhgfeutefhkeelleejteegheegveeitedvffetffffledvjeehjeeuuefhgfegnecuffhomhgrihhnpehlihgsrhgvohhffhhitggvrdhorhhgpdhgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegtddrudegvddpfeejrdehledrudegvddrleeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheehtddpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=46.105.60.232; envelope-from=ngraves@ngraves.fr; helo=3.mo550.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/libreoffice.scm (python-pyoo): New variable. --- gnu/packages/libreoffice.scm | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 48689b9342..35074982e4 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -1187,3 +1187,45 @@ (define (install-python-script name) '((release-monitoring-url . "https://www.libreoffice.org/download/download-libreoffice/"))) (license license:mpl2.0))) + +(define-public python-pyoo + (package + (name "python-pyoo") + (version "1.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "pyoo" version)) + (sha256 + (base32 + "1bxj24nwrvqra0d18w0lckvm9iw6bvks1fid2b6xrpvfc5xb37ry")))) + (build-system python-build-system) + (arguments '(#:tests? #f)) + (inputs (list libreoffice)) + (home-page "https://github.com/mila/pyoo") + (synopsis "Pythonic interface to Apache OpenOffice API (UNO)") + (description "PyOO allows you to control a running OpenOffice or +LibreOffice program for reading and writing spreadsheet documents. The +library can be used for generating documents in various formats. + +The main advantage of the PyOO library is that it can use almost any +functionality implemented in OpenOffice / LibreOffice applications. On the +other hand it needs a running process of a office suite application which is +significant overhead. It uses the UNO standard interface to a running +OpenOffice or LibreOffice application. + +PyOO wraps a robust Python-UNO bridge to simple and Pythonic interface. + +Available features: +@itemize +@item Opening and creation of spreadsheet documents +@item Saving documents to all formats available in OpenOffice +@item Charts and diagrams +@item Sheet access and manipulation +@item Formulas +@item Cell merging +@item Number, text, date, and time values +@item Cell and text formating +@item Number formating +@item Locales +@end itemize") + (license license:expat)))