all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#59399] [PATCH] gnu: Add hebcal.
@ 2022-11-20  4:15 Felix Lechner via Guix-patches via
  2022-11-20  8:44 ` ( via Guix-patches via
  0 siblings, 1 reply; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20  4:15 UTC (permalink / raw)
  To: 59399; +Cc: Felix Lechner

* 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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-11-24  9:50 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20  4:15 [bug#59399] [PATCH] gnu: Add hebcal Felix Lechner via Guix-patches via
2022-11-20  8:44 ` ( via Guix-patches via
2022-11-20 13:47   ` [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise Felix Lechner via Guix-patches via
2022-11-20 13:47     ` [bug#59399] [PATCH 2/4] gnu: Add go-github-com-hebcal-gematriya Felix Lechner via Guix-patches via
2022-11-20 13:55       ` ( via Guix-patches via
2022-11-20 13:48     ` [bug#59399] [PATCH 3/4] gnu: Add go-github-com-hebcal-hebcal-go Felix Lechner via Guix-patches via
2022-11-20 14:02       ` ( via Guix-patches via
2022-11-20 14:04         ` ( via Guix-patches via
2022-11-20 13:48     ` [bug#59399] [PATCH 4/4] gnu: Add hebcal Felix Lechner via Guix-patches via
2022-11-20 14:06       ` ( via Guix-patches via
2022-11-20 17:23         ` [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise Felix Lechner via Guix-patches via
2022-11-20 17:24           ` [bug#59399] [PATCH 2/4] gnu: Add go-github-com-hebcal-gematriya Felix Lechner via Guix-patches via
2022-11-20 17:24           ` [bug#59399] [PATCH 3/4] gnu: Add go-github-com-hebcal-hebcal-go Felix Lechner via Guix-patches via
2022-11-20 17:24           ` [bug#59399] [PATCH 4/4] gnu: Add hebcal Felix Lechner via Guix-patches via
2022-11-20 17:26           ` [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise ( via Guix-patches via
2022-11-24  9:48             ` Christopher Baines
2022-11-20 13:53     ` ( via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.