From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mJcLBlyqeWOeIQEAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 05:17:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8DsKBlyqeWMSVwEAauVa8A (envelope-from ) for ; Sun, 20 Nov 2022 05:17:32 +0100 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 00C7F28EFE for ; Sun, 20 Nov 2022 05:17:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owblP-0003rI-KF; Sat, 19 Nov 2022 23:17:03 -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 1owblO-0003r2-Me for guix-patches@gnu.org; Sat, 19 Nov 2022 23:17:02 -0500 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 1owblO-0002Ky-EO for guix-patches@gnu.org; Sat, 19 Nov 2022 23:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owblO-0004mh-3S for guix-patches@gnu.org; Sat, 19 Nov 2022 23:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59399] [PATCH] gnu: Add hebcal. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Nov 2022 04:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59399 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59399@debbugs.gnu.org Cc: Felix Lechner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166891777618335 (code B ref -1); Sun, 20 Nov 2022 04:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Nov 2022 04:16:16 +0000 Received: from localhost ([127.0.0.1]:41977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owbkd-0004lf-Vx for submit@debbugs.gnu.org; Sat, 19 Nov 2022 23:16:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:49456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owbkZ-0004lU-R5 for submit@debbugs.gnu.org; Sat, 19 Nov 2022 23:16:13 -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 1owbkZ-0003ia-LZ for guix-patches@gnu.org; Sat, 19 Nov 2022 23:16:11 -0500 Received: from linode.us-core.com ([2600:3c01::f03c:93ff:fe26:6229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owbkX-00025i-5T for guix-patches@gnu.org; Sat, 19 Nov 2022 23:16:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=9XHVdsychA7bW0t K4kGBLJbQ6RAT0G3ftq4VbsOW//0=; h=date:subject:cc:to:from; d=lease-up.com; b=DKK8Ek8LWzWo+6yPU/pNqP7SO4wLrQsuIewDkvo5nk8D7b01vCex 8knU6PhdyjXN62dpo0xFVoIowBXjVsJso05KQtXO9s8EiQyb/vbqHMP9zuO2Cp2ltOAHDn MoGiPgiYrnWlkI2fvT4t5hPZwG3AlhYVi+5E9l2L9FIpefE4I= Received: by linode.us-core.com (OpenSMTPD) with ESMTPSA id cfafafe1 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 20 Nov 2022 04:16:02 +0000 (UTC) Received: from lechner-desktop.us-core.com (localhost.us-core.com [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 20ac0c5b; Sun, 20 Nov 2022 04:16:01 +0000 (UTC) Date: Sat, 19 Nov 2022 20:15:12 -0800 Message-Id: <20221120041512.319-1-felix.lechner@lease-up.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2600:3c01::f03c:93ff:fe26:6229; envelope-from=felix.lechner@us-core.com; helo=linode.us-core.com X-Spam_score_int: 20 X-Spam_score: 2.0 X-Spam_bar: ++ X-Spam_report: (2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_SBL_CSS=3.335, RCVD_IN_XBL=0.375, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668917852; 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:dkim-signature; bh=AHHMI+TK/9KAPLMXgma1gQuxuRj9DTtt8UqrL83vsSw=; b=crWwm4x+P3ibJ9AIbP3pULIvrK4O3xF+Jkrp87/TO87zhKHx/AVFDNtHH6uTprjNiwf0fV lV0yNsOH7U1FTYTXRF43VRItGMSdz+ufuXKQ2YEQb8qn3iRSQ0F2KPbKQB54Ivt54THufx A3LaTtXLxEBgEC/FHXLOPErfJebB+yoNd70AXMHgN2H1MO5KwUvCIZ2Nm/Vf7yzasuAamh BoZ3h3V7aV4Xc4r9TVKwxXxofU4fJS3LN93Nm0eZ0+r7Zny0/Aa4MhUh4yPO1wxxl479K2 lPF1mGfWRewJfeT6r+8iQOfnEbKBRuzgbC8STCPcvMt070fR0KiDE7BLxsHxaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668917852; a=rsa-sha256; cv=none; b=OpYA1GV32jxu3OW+q5vwQ48f17CNPz4WyjjChGc8R3Q/ncMFXMAt66TE5XZyO3sWWM4E/Y oREcxM3JfvuKzU56LhXHtxJZy0SbFLA7Qo8t9ahLZ79pJu2N8D3M8jpEPOnNkVtZ8b0kcr cA8j92pCMpT1W1cut9KP90sFINS2cNeA/HhjNJTIeRgSmsfSzcrTpxW0NYmbBojxqBJ4L8 jxFHwKMwrs5AXhwEnq/MRzt8Oq99OaSgqgArz03rJLMe6SIdJq5aysprkzkzAi9fdyX3Yd XR02rnZF8d09Owj4BDO7jqYNP1qbmPK4q66ADDHUw7QKkvRkxmOE4xgCh1cfRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=DKK8Ek8L; 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-Spam-Score: 1.59 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=DKK8Ek8L; 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-Queue-Id: 00C7F28EFE X-Spam-Score: 1.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: nTUfca29Mc5g * gnu/packages/calendar.scm (hebcal): New variable. * gnu/packages/golang.scm (go-github-com-hebcal-hebcal-go, go-github-com-hebcal-gematriya, go-github-com-nathan-osman-go-sunrise): New variables. --- gnu/packages/calendar.scm | 36 +++++++++++++++ gnu/packages/golang.scm | 95 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 131 insertions(+) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 6583810277..41c047f955 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -34,6 +34,7 @@ (define-module (gnu packages calendar) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) + #:use-module (guix build-system go) #:use-module (guix build-system cmake) #:use-module (guix build-system python) #:use-module (gnu packages admin) @@ -45,6 +46,7 @@ (define-module (gnu packages calendar) #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages golang) #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) #:use-module (gnu packages perl) @@ -426,3 +428,37 @@ (define-public gsimplecal launched again it closes the running instance. It can additionally be configured to show the current time in different timezones.") (license license:bsd-3)))) + +(define-public hebcal + (let ((commit "2384bb88dc1a41a4a5ae57a29fb58b2dd49a475d") + (revision "0")) + (package + (name "hebcal") + (version (git-version "5.3.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/hebcal") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12rv3b51jb7wcjwmmizz9jkw7gh37yklys4xncvpzgxdkkfgmmjx")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/hebcal/hebcal")) + (native-inputs + (list go-github-com-hebcal-hebcal-go + go-github-com-pborman-getopt)) + (synopsis "Perpetual Jewish Calendar with holidays and prayer times") + (description "Hebcal is a program which converts between Hebrew and Gregorian +dates, and generates lists of Jewish holidays for any year past, present or future. +Shabbat and holiday candle lighting and havdalah times are approximated based on +location. + +It can also show daily prayer times, the weekly Torah reading (Parashat HaShavua) +and the daily leaf of Talmud (Daf Yomi). The program can furthermore help with the +counting of the Omer or with the calculation of Hebrew yahrzeits, birthdays or +anniversaries.") + (home-page "https://github.com/hebcal/hebcal") + (license license:gpl2+)))) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b3df51ed5f..1d5493ad40 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2485,6 +2485,101 @@ (define-public go-gopkg-in-go-playground-validator-v9 @end itemize") (license license:expat))) +(define-public go-github-com-nathan-osman-go-sunrise + (let ((commit "c8f9f1eb869135f07378e7e3c5ec7a005f806c73") + (revision "0")) + (package + (name "go-github-com-nathan-osman-go-sunrise") + (version (git-version "1.1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nathan-osman/go-sunrise") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "017zwzx05r5spxcs07dp6bnh7waknzsd819k7aqd8kr819v3x9in")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/nathan-osman/go-sunrise")) + (home-page "https://github.com/nathan-osman/go-sunrise") + (synopsis "Calculates the sunrise and sunset times for a given location") + (description + "To calculate the sunrise and sunset times, you will need the date of your +observation and the geographical coordinates in latitude and longitude for the +location.") + (license license:expat)))) + +(define-public go-github-com-hebcal-gematriya + (let ((commit "fe3043f73e415eb82727701d10f2fb40f87675e9") + (revision "0")) + (package + (name "go-github-com-hebcal-gematriya") + (version (git-version "1.0.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/gematriya") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0xmnb2i80dy380yv8c4pd04bbyqgbc7c40p8hz1vqj2lhbm6jabf")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/hebcal/gematriya")) + (home-page "https://github.com/hebcal/gematriya") + (synopsis "Provides a system of writing numbers as Hebrew letters") + (description + "Prints numbers as Hebrew letters. Numerical values are represented using +letters of the Hebrew alef-bet (alphabet).") + (license license:bsd-2)))) + +(define-public go-github-com-hebcal-hebcal-go + (let ((commit "d42e881860cfc9e8249fc79f268091c3c4d36b0d") + (revision "0")) + (package + (name "go-github-com-hebcal-hebcal-go") + (version (git-version "0.9.11" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hebcal/hebcal-go") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1m9akb8pwxchpaci05gambshrzw626gsrfhl25f36vjl7mq5292n")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/hebcal/hebcal-go" + ;; Source-only package + #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; Source-only package + (delete 'build)))) + (propagated-inputs + (list go-github-com-hebcal-gematriya + go-github-com-nathan-osman-go-sunrise + go-github-com-stretchr-testify)) + (home-page "https://github.com/hebcal/hebcal-go") + (synopsis "Library module for Hebcal, a perpetual Jewish Calendar") + (description + "This library converts between Hebrew and Gregorian dates, and generates lists +of Jewish holidays for any year (past, present or future). Shabbat and holiday candle +lighting and havdalah times are approximated based on location. + +Torah readings (Parashat HaShavua), Daf Yomi, and counting of the Omer can also be +specified. Hebcal also includes algorithms to calculate yahrzeits, birthdays and +anniversaries.") + (license license:gpl2+)))) + (define-public go-github-com-aws-sdk (package (name "go-github-com-aws-sdk") base-commit: ac09fcb955e9358c330d728693759ca1a2e20542 -- 2.38.1