From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GPEhDKKxJmQ62gAASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 12:10:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QMEgC6KxJmQ9ZwAAG6o9tA (envelope-from ) for ; Fri, 31 Mar 2023 12:10:42 +0200 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 E7DF11421 for ; Fri, 31 Mar 2023 12:10:41 +0200 (CEST) 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 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 Content-Transfer-Encoding: 8bit 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 From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680257442; a=rsa-sha256; cv=none; b=UD3COuYoanEl3ZFHihMjW2OJS0P93WRb74MqvGRGLaiC2EmZ9JKICOkAv40w075zctNEpC L4yx6GdZGTlwq7N/AruH+t89biqH4oNe7lgkg7e3swu8IQ/TJbIuXsi40XR6hH+HJ3j/s2 Hm0rpthc7VdNGNSUnt76N5thc67zrJfb+uyJA4uXcVfZMa9Pi9zIrkyey4w5SSx4UBwVN4 4vemRsHOjXj6fcsBcb+eFaR6CDngg8T1yR0REpZkc/FIHsoULyVzktS/49C7Ii3Xvwq5Da pn51TBypqWhCpVlMzdi3m6JjuOQk/6s6DnVyt5vNxqd/N2Lpg6JSIODE5u5E9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680257441; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PfIQtDrVnhya3MkJ9KKBeCRiTXdRzwxpuafXHzBEFtc=; b=FJY4RMbZXTeSn/KJR4UM5BfzcwBEnJGhOwZpg5jET6U0YLRtgDGJ2g8FkRe71QXAXLD3M1 5sctJx55ma86sizqKoSkzQ4E+fAwCsaRzBi1IgtOZ0ff3n3Ct8VsXDtfOYxUG83hcQJE4F qs4efGlKu/78jJ9sxBsw6EwjQr7DXeQV64CD3v9j6A1bSD03srYi47P4b0uwrLLCEJcnsp aivpMkKYLQ4oK7kyKVcHgklnEpbOpJzZWfEac9KefCQAIH3r9HX0NAPgs5w91RJmJoFgv+ yJa+tOI+TiEv83q1Qm5aTLQRMPRI+XTckqIXpcSHgvWKMInK9S4Qqq4gTwayQQ== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.52 X-Spam-Score: -5.52 X-Migadu-Queue-Id: E7DF11421 X-TUID: 1qGdq51kXZjr * 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))) -- 2.39.2