* [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
* [bug#59399] [PATCH] gnu: Add hebcal.
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
0 siblings, 1 reply; 17+ messages in thread
From: ( via Guix-patches via @ 2022-11-20 8:44 UTC (permalink / raw)
To: Felix Lechner, 59399
Heya,
On Sun Nov 20, 2022 at 4:15 AM GMT, Felix Lechner via Guix-patches via wrote:
> * 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.
Please send one patch per package.
-- (
^ permalink raw reply [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise.
2022-11-20 8:44 ` ( via Guix-patches via
@ 2022-11-20 13:47 ` 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
` (3 more replies)
0 siblings, 4 replies; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 13:47 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/golang.scm
(go-github-com-nathan-osman-go-sunrise): New variable.
---
gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index b3df51ed5f..e697cd4af6 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2485,6 +2485,33 @@ (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-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
* [bug#59399] [PATCH 2/4] gnu: Add go-github-com-hebcal-gematriya.
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 ` 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
` (2 subsequent siblings)
3 siblings, 1 reply; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 13:47 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/golang.scm
(go-github-com-hebcal-gematriya): New variable.
---
gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e697cd4af6..4e0f62906a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2512,6 +2512,32 @@ (define-public go-github-com-nathan-osman-go-sunrise
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-aws-sdk
(package
(name "go-github-com-aws-sdk")
--
2.38.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 3/4] gnu: Add go-github-com-hebcal-hebcal-go.
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:48 ` Felix Lechner via Guix-patches via
2022-11-20 14:02 ` ( 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 13:53 ` ( via Guix-patches via
3 siblings, 1 reply; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 13:48 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/golang.scm
(go-github-com-hebcal-hebcal-go): New variable.
---
gnu/packages/golang.scm | 42 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4e0f62906a..1d5493ad40 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2538,6 +2538,48 @@ (define-public go-github-com-hebcal-gematriya
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")
--
2.38.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 4/4] gnu: Add hebcal.
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:48 ` [bug#59399] [PATCH 3/4] gnu: Add go-github-com-hebcal-hebcal-go Felix Lechner via Guix-patches via
@ 2022-11-20 13:48 ` Felix Lechner via Guix-patches via
2022-11-20 14:06 ` ( via Guix-patches via
2022-11-20 13:53 ` ( via Guix-patches via
3 siblings, 1 reply; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 13:48 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/calendar.scm (hebcal): New variable.
---
gnu/packages/calendar.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 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+))))
--
2.38.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise.
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
` (2 preceding siblings ...)
2022-11-20 13:48 ` [bug#59399] [PATCH 4/4] gnu: Add hebcal Felix Lechner via Guix-patches via
@ 2022-11-20 13:53 ` ( via Guix-patches via
3 siblings, 0 replies; 17+ messages in thread
From: ( via Guix-patches via @ 2022-11-20 13:53 UTC (permalink / raw)
To: Felix Lechner, 59399
Heya,
Thanks for splitting them! A few remarks:
On Sun Nov 20, 2022 at 1:47 PM GMT, Felix Lechner wrote:
> * gnu/packages/golang.scm
> (go-github-com-nathan-osman-go-sunrise): New variable.
Indentation for this should look something like:
* gnu/packages/golang.scm (go-github-com-nathan-osman-go-sunrise):
New variable.
> --- a/gnu/packages/golang.scm
> +++ b/gnu/packages/golang.scm
> @@ -2485,6 +2485,33 @@ (define-public go-gopkg-in-go-playground-validator-v9
> + (arguments
> + '(#:import-path "github.com/nathan-osman/go-sunrise"))
Please use
(list #:import-path ...)
instead.
> + (synopsis "Calculates the sunrise and sunset times for a given location")
Maybe change this to:
(synopsis "Calculate sunrise and sunset times in Go")
> + (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.")
How about this:
(description
"This package provides a Go library for calculating sunrise and
sunset times from geographical coordinates and a date.")
-- (
^ permalink raw reply [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 2/4] gnu: Add go-github-com-hebcal-gematriya.
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
0 siblings, 0 replies; 17+ messages in thread
From: ( via Guix-patches via @ 2022-11-20 13:55 UTC (permalink / raw)
To: Felix Lechner, 59399
Heya,
On Sun Nov 20, 2022 at 1:47 PM GMT, Felix Lechner wrote:
> * gnu/packages/golang.scm
> (go-github-com-hebcal-gematriya): New variable.
> --- a/gnu/packages/golang.scm
> +++ b/gnu/packages/golang.scm
> @@ -2512,6 +2512,32 @@ (define-public go-github-com-nathan-osman-go-sunrise
> + (arguments
> + '(#:import-path "github.com/hebcal/gematriya"))
(list ...)
> + (synopsis "Provides a system of writing numbers as Hebrew letters")
(synopsis "Print numbers as Hebrew letters in Go")
> + (description
> + "Prints numbers as Hebrew letters. Numerical values are represented using
> +letters of the Hebrew alef-bet (alphabet).")
(description
"This package provides a Go library for printing numbers as
Hebrew letters.")
-- (
^ permalink raw reply [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 3/4] gnu: Add go-github-com-hebcal-hebcal-go.
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
0 siblings, 1 reply; 17+ messages in thread
From: ( via Guix-patches via @ 2022-11-20 14:02 UTC (permalink / raw)
To: Felix Lechner, 59399
On Sun Nov 20, 2022 at 1:48 PM GMT, Felix Lechner wrote:
> * gnu/packages/golang.scm
> (go-github-com-hebcal-hebcal-go): New variable.
> --- a/gnu/packages/golang.scm
> +++ b/gnu/packages/golang.scm
> @@ -2538,6 +2538,48 @@ (define-public go-github-com-hebcal-gematriya
> + (arguments
> + (list
> + #:import-path "github.com/hebcal/hebcal-go"
> + ;; Source-only package
> + #:tests? #f
> + #:phases
> + #~(modify-phases %standard-phases
> + ;; Source-only package
> + (delete 'build))))
Indent it like this:
(list #:import-path "githu.com/hebcal/hebcal-go"
#:tests? #f ;source-only package
#: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))
``go-github-com-stretchr-testify'' should probably be in native-inputs,
since it's used only in tests.
> + (synopsis "Library module for Hebcal, a perpetual Jewish Calendar")
(synopsis "Go library for the Hebcal 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.")
(description
"This package provides a library for conversion between Hebrew
and Georgian dates, and generation of lists of Jewish holidays for
a given year. Shabbat and holiday candle lighting and havdalah times
are approximated based on location.
Torah readings, Daf Yomi, and counting of the Omer can also be
specified. Algorithms are included to calculate yahrzeits, birthdays,
and anniversaries.")
-- (
^ permalink raw reply [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 3/4] gnu: Add go-github-com-hebcal-hebcal-go.
2022-11-20 14:02 ` ( via Guix-patches via
@ 2022-11-20 14:04 ` ( via Guix-patches via
0 siblings, 0 replies; 17+ messages in thread
From: ( via Guix-patches via @ 2022-11-20 14:04 UTC (permalink / raw)
To: (, Felix Lechner, 59399
On Sun Nov 20, 2022 at 2:02 PM GMT, ( via Guix-patches via wrote:
> (description
> "This package provides a library for conversion between Hebrew
> and Georgian dates, and generation of lists of Jewish holidays for
> a given year. Shabbat and holiday candle lighting and havdalah times
> are approximated based on location.
>
> Torah readings, Daf Yomi, and counting of the Omer can also be
> specified. Algorithms are included to calculate yahrzeits, birthdays,
> and anniversaries.")
s/Georgian/Gregorian/ (I misread that in the original description :))
-- (
^ permalink raw reply [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 4/4] gnu: Add hebcal.
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
0 siblings, 1 reply; 17+ messages in thread
From: ( via Guix-patches via @ 2022-11-20 14:06 UTC (permalink / raw)
To: Felix Lechner, 59399
On Sun Nov 20, 2022 at 1:48 PM GMT, Felix Lechner wrote:
> * gnu/packages/calendar.scm (hebcal): New variable.
> --- a/gnu/packages/calendar.scm
> +++ b/gnu/packages/calendar.scm
> @@ -426,3 +428,37 @@ (define-public gsimplecal
> + (build-system go-build-system)
> + (arguments
> + '(#:import-path "github.com/hebcal/hebcal"))
(list ...)
> + (native-inputs
> + (list go-github-com-hebcal-hebcal-go
> + go-github-com-pborman-getopt))
I think these both need to be regular inputs.
> + (synopsis "Perpetual Jewish Calendar with holidays and prayer times")
(synopsis "Perpetual Jewish calendar program")
> + (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.")
(description
"Hebcal is a program for converting between Hebrew and Gregorian
dates, and generating lists of Jewish holidays for a given year.
Shabbat, holiday candle lighting, and havdalah times are approximated
using your location.
It can also show daily prayer times, the weekly Torah reading, and
the daily leaf of Talmud. The program can help with counting of the
Omer or with calculation of Hebrew yahrzeits, birthdays, or
anniversaries.")
-- (
^ permalink raw reply [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise.
2022-11-20 14:06 ` ( via Guix-patches via
@ 2022-11-20 17:23 ` 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
` (3 more replies)
0 siblings, 4 replies; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 17:23 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/golang.scm (go-github-com-nathan-osman-go-sunrise):
New variable.
---
gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index b3df51ed5f..78443b81a5 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2485,6 +2485,32 @@ (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
+ (list #:import-path "github.com/nathan-osman/go-sunrise"))
+ (home-page "https://github.com/nathan-osman/go-sunrise")
+ (synopsis "Calculate sunrise and sunset times in Go")
+ (description
+ "This package provides a Go library for calculating sunrise and
+sunset times from geographical coordinates and a date.")
+ (license license:expat))))
+
(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
* [bug#59399] [PATCH 2/4] gnu: Add go-github-com-hebcal-gematriya.
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 ` 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
` (2 subsequent siblings)
3 siblings, 0 replies; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 17:24 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/golang.scm (go-github-com-hebcal-gematriya):
New variable.
---
gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 78443b81a5..2dc7091b4b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2511,6 +2511,32 @@ (define-public go-github-com-nathan-osman-go-sunrise
sunset times from geographical coordinates and a date.")
(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
+ (list #:import-path "github.com/hebcal/gematriya"))
+ (home-page "https://github.com/hebcal/gematriya")
+ (synopsis "Print numbers as Hebrew letters in Go")
+ (description
+ "This package provides a Go library for printing numbers as
+Hebrew letters.")
+ (license license:bsd-2))))
+
(define-public go-github-com-aws-sdk
(package
(name "go-github-com-aws-sdk")
--
2.38.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 3/4] gnu: Add go-github-com-hebcal-hebcal-go.
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 ` 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
3 siblings, 0 replies; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 17:24 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/golang.scm (go-github-com-hebcal-hebcal-go):
New variable.
---
gnu/packages/golang.scm | 43 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 2dc7091b4b..ff290213cd 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2537,6 +2537,49 @@ (define-public go-github-com-hebcal-gematriya
Hebrew letters.")
(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))))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list go-github-com-hebcal-gematriya
+ go-github-com-nathan-osman-go-sunrise))
+ (home-page "https://github.com/hebcal/hebcal-go")
+ (synopsis "Go library for the Hebcal perpetual Jewish calendar")
+ (description
+ "This package provides a library for conversion between Hebrew
+and Gregorian dates, and generation of lists of Jewish holidays for
+a given year. Shabbat and holiday candle lighting and havdalah times
+are approximated based on location.
+
+Torah readings, Daf Yomi, and counting of the Omer can also be
+specified. Algorithms are included to calculate yahrzeits, birthdays,
+and anniversaries.")
+ (license license:gpl2+))))
+
(define-public go-github-com-aws-sdk
(package
(name "go-github-com-aws-sdk")
--
2.38.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 4/4] gnu: Add hebcal.
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 ` 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
3 siblings, 0 replies; 17+ messages in thread
From: Felix Lechner via Guix-patches via @ 2022-11-20 17:24 UTC (permalink / raw)
To: 59399; +Cc: paren, Felix Lechner
* gnu/packages/calendar.scm (hebcal): New variable.
---
gnu/packages/calendar.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm
index 6583810277..32a8f23f19 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,38 @@ (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
+ (list #:import-path "github.com/hebcal/hebcal"))
+ (inputs
+ (list go-github-com-hebcal-hebcal-go
+ go-github-com-pborman-getopt))
+ (synopsis "Perpetual Jewish Calendar program")
+ (description
+ "Hebcal is a program for converting between Hebrew and Gregorian
+dates, and generating lists of Jewish holidays for a given year.
+Shabbat, holiday candle lighting, and havdalah times are approximated
+using your location.
+
+It can also show daily prayer times, the weekly Torah reading, and
+the daily leaf of Talmud. The program can help with counting of the
+Omer or with calculation of Hebrew yahrzeits, birthdays, or
+anniversaries.")
+ (home-page "https://github.com/hebcal/hebcal")
+ (license license:gpl2+))))
--
2.38.1
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise.
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
` (2 preceding siblings ...)
2022-11-20 17:24 ` [bug#59399] [PATCH 4/4] gnu: Add hebcal Felix Lechner via Guix-patches via
@ 2022-11-20 17:26 ` ( via Guix-patches via
2022-11-24 9:48 ` Christopher Baines
3 siblings, 1 reply; 17+ messages in thread
From: ( via Guix-patches via @ 2022-11-20 17:26 UTC (permalink / raw)
To: Felix Lechner, 59399
Heya,
On Sun Nov 20, 2022 at 5:23 PM GMT, Felix Lechner wrote:
> * gnu/packages/golang.scm (go-github-com-nathan-osman-go-sunrise):
> New variable.
> * gnu/packages/golang.scm (go-github-com-hebcal-gematriya):
> New variable.
> * gnu/packages/golang.scm (go-github-com-hebcal-hebcal-go):
> New variable.
> * gnu/packages/calendar.scm (hebcal): New variable.
All LGTM!
-- (
^ permalink raw reply [flat|nested] 17+ messages in thread
* [bug#59399] [PATCH 1/4] gnu: Add go-github-com-nathan-osman-go-sunrise.
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
0 siblings, 0 replies; 17+ messages in thread
From: Christopher Baines @ 2022-11-24 9:48 UTC (permalink / raw)
To: (, Felix Lechner; +Cc: 59399-done, 59399
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
"( via Guix-patches" via <guix-patches@gnu.org> writes:
> Heya,
>
> On Sun Nov 20, 2022 at 5:23 PM GMT, Felix Lechner wrote:
>> * gnu/packages/golang.scm (go-github-com-nathan-osman-go-sunrise):
>> New variable.
>
>> * gnu/packages/golang.scm (go-github-com-hebcal-gematriya):
>> New variable.
>
>> * gnu/packages/golang.scm (go-github-com-hebcal-hebcal-go):
>> New variable.
>
>> * gnu/packages/calendar.scm (hebcal): New variable.
>
> All LGTM!
>
> -- (
Thanks both! I've gone ahead and pushed these patches to master as
963e86af87216e8c1f4967e8047e8de415bb1000.
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [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.