* [bug#75955] [PATCH] gnu: Add annextimelog.
@ 2025-01-30 22:21 Matthias Riße
[not found] ` <handler.75955.B.173827577831674.ack@debbugs.gnu.org>
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Matthias Riße @ 2025-01-30 22:21 UTC (permalink / raw)
To: 75955; +Cc: Matthias Riße
* gnu/packages/task-management.scm (annextimelog): New variable.
Change-Id: I7adf4263422fdb1edcb5dfc878cb1decb529c27e
---
| 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
--git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm
index af99c08a6a..11287ee8eb 100644
--- a/gnu/packages/task-management.scm
+++ b/gnu/packages/task-management.scm
@@ -113,6 +113,30 @@ (define-public clikan
following the Japanese kanban (boarding) style.")
(license license:expat))))
+(define-public annextimelog
+ (package
+ (name "annextimelog")
+ (version "0.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "annextimelog" version))
+ (sha256
+ (base32 "0m1q0pbjy7d4yvgkflg7208gmdrqn1cx346b4li0mlss1kr91hvz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "unittest")))))))
+ (propagated-inputs (list python-rich python-tzdata))
+ (native-inputs (list python-poetry-core))
+ (home-page "https://gitlab.com/nobodyinperson/annextimelog")
+ (synopsis "Track time spent on projects, backed by Git Annex")
+ (description "Track time spent on projects, backed by Git Annex.")
+ (license license:gpl3+)))
+
(define-public t-todo-manager
;; Last release is more than 10 years old. Using latest commit.
(let ((changeset "89ad444c000b")
base-commit: c788962baeeb6bf021b30c9ad774d472f592fdb5
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#75955] Missing dependency
[not found] ` <handler.75955.B.173827577831674.ack@debbugs.gnu.org>
@ 2025-01-30 23:08 ` Matthias Riße via Guix-patches via
0 siblings, 0 replies; 4+ messages in thread
From: Matthias Riße via Guix-patches via @ 2025-01-30 23:08 UTC (permalink / raw)
To: 75955
[-- Attachment #1: Type: text/plain, Size: 68 bytes --]
I totally forgot the obvious dependency on git-annex, will revise...
[-- Attachment #2: Type: text/html, Size: 131 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#75955] [PATCH v1] gnu: Add annextimelog.
2025-01-30 22:21 [bug#75955] [PATCH] gnu: Add annextimelog Matthias Riße
[not found] ` <handler.75955.B.173827577831674.ack@debbugs.gnu.org>
@ 2025-01-31 21:17 ` Matthias Riße
2025-02-03 22:04 ` bug#75955: [PATCH] " Sharlatan Hellseher
2 siblings, 0 replies; 4+ messages in thread
From: Matthias Riße @ 2025-01-31 21:17 UTC (permalink / raw)
To: 75955; +Cc: Matthias Riße
* gnu/packages/task-management.scm (annextimelog): New variable.
Change-Id: I7adf4263422fdb1edcb5dfc878cb1decb529c27e
---
| 38 ++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
--git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm
index af99c08a6a..f02203d22f 100644
--- a/gnu/packages/task-management.scm
+++ b/gnu/packages/task-management.scm
@@ -45,6 +45,7 @@ (define-module (gnu packages task-management)
#:use-module (gnu packages golang-xyz)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages haskell-apps)
#:use-module (gnu packages hunspell)
#:use-module (gnu packages linux)
#:use-module (gnu packages lua)
@@ -60,6 +61,7 @@ (define-module (gnu packages task-management)
#:use-module (gnu packages ruby)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages version-control)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix hg-download)
@@ -113,6 +115,42 @@ (define-public clikan
following the Japanese kanban (boarding) style.")
(license license:expat))))
+(define-public annextimelog
+ (package
+ (name "annextimelog")
+ (version "0.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "annextimelog" version))
+ (sha256
+ (base32 "0m1q0pbjy7d4yvgkflg7208gmdrqn1cx346b4li0mlss1kr91hvz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "unittest"))))
+ (add-after 'create-entrypoints 'wrap-with-runtime-dependencies
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((bin (string-append (assoc-ref outputs "out")
+ "/bin")))
+ (for-each (lambda (file)
+ (wrap-program file
+ `("PATH" ":" prefix
+ (,(dirname (which "git"))
+ ,(dirname (which "git-annex"))))))
+ (list (string-append bin "/annextimelog")
+ (string-append bin "/atl")))))))))
+ (propagated-inputs (list python-rich python-tzdata))
+ (inputs (list bash-minimal git git-annex))
+ (native-inputs (list python-poetry-core))
+ (home-page "https://gitlab.com/nobodyinperson/annextimelog")
+ (synopsis "Track time spent on projects, backed by Git Annex")
+ (description "Track time spent on projects, backed by Git Annex.")
+ (license license:gpl3+)))
+
(define-public t-todo-manager
;; Last release is more than 10 years old. Using latest commit.
(let ((changeset "89ad444c000b")
base-commit: c788962baeeb6bf021b30c9ad774d472f592fdb5
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#75955: [PATCH] gnu: Add annextimelog.
2025-01-30 22:21 [bug#75955] [PATCH] gnu: Add annextimelog Matthias Riße
[not found] ` <handler.75955.B.173827577831674.ack@debbugs.gnu.org>
2025-01-31 21:17 ` [bug#75955] [PATCH v1] gnu: Add annextimelog Matthias Riße
@ 2025-02-03 22:04 ` Sharlatan Hellseher
2 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2025-02-03 22:04 UTC (permalink / raw)
To: 75955-done
[-- Attachment #1: Type: text/plain, Size: 3323 bytes --]
Hi,
Applied some changes:
--8<---------------cut here---------------start------------->8---
@@ -12,6 +12,7 @@
;;; Copyright © 2022 Matthew James Kraai <kraai@ftbfs.org>
;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2025 Matthias Riße <matrss@0px.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -127,28 +128,35 @@ (define-public annextimelog
(base32 "0m1q0pbjy7d4yvgkflg7208gmdrqn1cx346b4li0mlss1kr91hvz"))))
(build-system pyproject-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "unittest"))))
- (add-after 'create-entrypoints 'wrap-with-runtime-dependencies
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((bin (string-append (assoc-ref outputs "out")
- "/bin")))
- (for-each (lambda (file)
- (wrap-program file
- `("PATH" ":" prefix
- (,(dirname (which "git"))
- ,(dirname (which "git-annex"))))))
- (list (string-append bin "/annextimelog")
- (string-append bin "/atl")))))))))
- (propagated-inputs (list python-rich python-tzdata))
- (inputs (list bash-minimal git git-annex))
- (native-inputs (list python-poetry-core))
+ (list
+ #:test-flags #~(list "annextimelog/test.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'create-entrypoints 'wrap-program
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((bin (string-append #$output "/bin")))
+ (for-each (lambda (file)
+ (wrap-program file
+ `("PATH" ":" prefix
+ (,(dirname (which "git"))
+ ,(dirname (which "git-annex"))))))
+ (list (string-append bin "/annextimelog")
+ (string-append bin "/atl")))))))))
+ (native-inputs
+ (list python-poetry-core
+ python-pytest))
+ (inputs
+ (list bash-minimal
+ git
+ git-annex))
+ (propagated-inputs
+ (list python-rich
+ python-tzdata))
(home-page "https://gitlab.com/nobodyinperson/annextimelog")
- (synopsis "Track time spent on projects, backed by Git Annex")
- (description "Track time spent on projects, backed by Git Annex.")
+ (synopsis "Git Annex-backed Time Tracking")
+ (description
+ "This package provides a functionality to track time spent on projects,
+backed by Git Annex.")
(license license:gpl3+)))
(define-public t-todo-manager
--8<---------------cut here---------------end--------------->8---
Pushed to master as:
6964f7ad348 * gnu: Add annextimelog.
--
Thanks,
Oleg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-03 22:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-30 22:21 [bug#75955] [PATCH] gnu: Add annextimelog Matthias Riße
[not found] ` <handler.75955.B.173827577831674.ack@debbugs.gnu.org>
2025-01-30 23:08 ` [bug#75955] Missing dependency Matthias Riße via Guix-patches via
2025-01-31 21:17 ` [bug#75955] [PATCH v1] gnu: Add annextimelog Matthias Riße
2025-02-03 22:04 ` bug#75955: [PATCH] " Sharlatan Hellseher
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).