From patchwork Thu Dec 7 17:56:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Benjamin Slade X-Patchwork-Id: 57357 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 743F427BBEA; Thu, 7 Dec 2023 18:02:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 2A7EB27BBE2 for ; Thu, 7 Dec 2023 18:02:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBIh7-00049T-7b; Thu, 07 Dec 2023 13:01:53 -0500 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 1rBIh4-000491-JV for guix-patches@gnu.org; Thu, 07 Dec 2023 13:01:50 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBIh4-0004UB-9i for guix-patches@gnu.org; Thu, 07 Dec 2023 13:01:50 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBIhG-0002Wb-Mh for guix-patches@gnu.org; Thu, 07 Dec 2023 13:02:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67698] [PATCH] add python-ical2orgpy and dependencies Resent-From: Benjamin Slade Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Dec 2023 18:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67698 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67698@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17019720719601 (code B ref -1); Thu, 07 Dec 2023 18:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Dec 2023 18:01:11 +0000 Received: from localhost ([127.0.0.1]:43099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBIgQ-0002Un-Ny for submit@debbugs.gnu.org; Thu, 07 Dec 2023 13:01:11 -0500 Received: from lists.gnu.org ([2001:470:142::17]:57978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBIgL-0002U4-Tx for submit@debbugs.gnu.org; Thu, 07 Dec 2023 13:01:09 -0500 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 1rBIg3-0003xr-TK for guix-patches@gnu.org; Thu, 07 Dec 2023 13:00:48 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rBIg1-0004HX-JQ for guix-patches@gnu.org; Thu, 07 Dec 2023 13:00:47 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4SmMWN2pcsz9skc for ; Thu, 7 Dec 2023 19:00:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lambda-y.net; s=MBO0001; t=1701972032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=3vFchvefzTSyrUhUixpisdXTO51Mn20/QANYwaxI0Vw=; b=b2gPx8x1BkYT1ilOcE9aLiZF9YQCZ6NTAE8KEyekyugRtqZrdKXEzBeZEEnRyWXTXS3Nok gbVoF/MsalmBTtN/vrhmeu4XQ01fL956zRxh/pUoNFQ7HwPARQrgzgH9bAzhnZbTYbGKZQ 8b9FAzkJJZb1/9rVhqoyxSqiTsFAe1PgXesHB2bXUZJmYH3LZKVQcYSFy0BTDpEVDDokMi kE5PHIdTU7bajw8vhrnjF9pOZGW2xTAX+3lLOIWiDrn9nfNvEVTfT0woqv1+G9JgQ7dwyK 6W019i/BjYvNaENYhqKQVwsMEdXHHK+D+vpZ29cXg3g4NVsls9sjdAJPQguw8A== From: Benjamin Slade Date: Thu, 07 Dec 2023 11:56:57 -0600 Message-ID: <87wmtpnb9e.fsf@lambda-y.net> MIME-Version: 1.0 Received-SPF: none client-ip=80.241.56.161; envelope-from=slade@lambda-y.net; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , 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 -- '(Dr Benjamin Slade (he/him)      (website . )      `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))        "sent by mu4e 1.10.8 in Emacs 30.0.50 with org-msg on GNU Guix (Linux)") From 695b50a3744a8bd31a7e4578aaf7e5bb0fc4a36e Mon Sep 17 00:00:00 2001 From: Benjamin Slade Date: Thu, 7 Dec 2023 11:55:03 -0600 Subject: [PATCH] add python-ical2orgpy and dependencies --- gnu/packages/python-xyz.scm | 84 +++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 86f8d81..67345d8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -146,6 +146,7 @@ ;;; Copyright © 2023 Janneke Nieuwenhuizen ;;; Copyright © 2023 Attila Lendvai ;;; Copyright © 2023 Troy Figiel +;;; Copyright © 2023 Benjamin Slade ;;; ;;; This file is part of GNU Guix. ;;; @@ -34377,6 +34378,89 @@ (define-public python-zeroc-ice-3.6 (base32 "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2")))))) +(define-public python-x-wr-timezone + (package + (name "python-x-wr-timezone") + (version "0.0.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "x_wr_timezone" version)) + (sha256 + (base32 "0j5zjvrshn7smq6cgbh7l66dl64wqs18cfyfnq1np1y00g320pha")))) + (build-system python-build-system) + (arguments + ;; Broken tests or cyclic dependecies with other packages. + '(#:phases (modify-phases %standard-phases + (delete 'sanity-check)) + #:tests? #f)) + (propagated-inputs (list python-icalendar python-pytz)) + (home-page "https://github.com/niccokunzmann/x-wr-timezone") + (synopsis "Handling of non-standard X-WR-TIMEZONE icalendar property") + (description + "Some calendar providers introduce the non-standard X-WR-TIMEZONE +parameter to ICS calendar files. Strict interpretations according to RFC 5545 ignore + the X-WR-TIMEZONE parameter. This causes the times of the events to differ from those + which make use of X-WR-TIMEZONE. This module aims to bridge the gap by converting + calendars using X-WR-TIMEZONE to a strict RFC 5545 calendars.") + (license license:lgpl3+))) + +(define-public python-recurring-ical-events + (package + (name "python-recurring-ical-events") + (version "2.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "recurring_ical_events" version)) + (sha256 + (base32 "00k4l800j2d3zfqhxjlzjk0b6493wqhmg4r58xsp12sx2ia2sxla")))) + (build-system python-build-system) + (arguments + ;; Broken tests or cyclic dependecies with other packages. + '(#:phases (modify-phases %standard-phases + (delete 'sanity-check)) + #:tests? #f)) + (propagated-inputs (list python-x-wr-timezone python-icalendar python-pytz)) + (home-page "https://github.com/niccokunzmann/python-recurring-ical-events") + (synopsis + "Python library for recurrence of ical events based on icalendar") + (description + "ICal has some complexity to it: Events, TODOs and Journal entries can + be repeated, removed from the feed and edited later on. +This tool takes care of these circumstances.") + (license license:lgpl3+))) + +(define-public python-ical2orgpy + (package + (name "python-ical2orgpy") + (version "0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ical2orgpy" version)) + (sha256 + (base32 "0a2ai78jzn250s1dlsimsfp6035421nrabj08xdlgsh7mb82gkap")))) + (build-system python-build-system) + (arguments + ;; Broken tests or cyclic dependecies with other packages. + '(#:phases (modify-phases %standard-phases + (delete 'sanity-check)) + #:tests? #f)) + (propagated-inputs (list python-click python-icalendar python-pytz + python-tzlocal python-recurring-ical-events)) + (home-page "https://github.com/ical2org-py/ical2org.py") + (synopsis "Convert ical .ics file to org-mode") + (description + "This python script converts an ical calendar (for instance, as exported + from google calendar) into an org-mode document. It is conceived as a replacement of + the awk script located at +@url{https://orgmode.org/worg/org-tutorials/org-google-sync.html}. + The main difference is that ical2orgpy correctly manages recurring events of + @dfn{yearly}, @dfn{daily} and @dfn{weekly} types. ical2orgpy duplicates all recurring + events falling into a specified time-frame into the exported org-document.") + (license license:gpl3+))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar -- 2.41.0