From 0f698c5f07037ccac73e5e1f82e3ba03e0082d07 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 24 Nov 2025 20:19:39 +0000 Subject: [PATCH] gnu: date2name: Move to calendar. * gnu/packages/python-xyz.scm (date2name): Move from here ... * gnu/packages/calendar.scm: ... to here. Change-Id: I7d49a5fdf611940adb70ad960da8a05b420e37fe --- gnu/packages/calendar.scm | 28 ++++++++++++++++++++++++++++ gnu/packages/python-xyz.scm | 27 --------------------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index bf275c6ae7d31dcb489314a44ca5a5a1699fb67b..d3ab2e8780a81015b681ef47e8f5ff223cba8456 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Brendan Tildesley ;;; Copyright © 2020 Tanguy Le Carrour ;;; Copyright © 2020 Peng Mei Yu +;;; Copyright © 2021 Petr Hodina ;;; Copyright © 2021 Wamm K. D. ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2025 Denis 'GNUtoo' Carikli @@ -105,6 +106,33 @@ https://www.agendadulibre.org are in French and the adl-submit tool is only available in French.") (license license:gpl2)))) +(define-public date2name + (let ((commit "50cc8d3957fc0bdc26c65042ab8f0d9f05610283") + (revision "2")) + (package + (name "date2name") + (version (git-version "0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/novoid/date2name") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16m24dvyg93rpa94401cladjvj5pk3ds5y6sbz54xygdpg9qf8qm")))) + (build-system pyproject-build-system) + (native-inputs + (list python-poetry-core + python-pytest)) + (home-page "https://github.com/novoid/date2name") + (synopsis "Handling time-stamps and date-stamps in file names") + (description + "By default, date2name gets the modification time of matching files and +directories and adds a datestamp in standard ISO 8601+ format YYYY-MM-DD at +the beginning of the file or directory name.") + (license license:gpl3+)))) + (define-public date (package (name "date") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d779850a08433bef8e223c7eb2dfad080c9f3b0c..440efbbec0ef1da4b802618e3f38b99f10a56a11 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -33373,33 +33373,6 @@ key-value pairs from a @code{.env} file and set them as environment variables.") (append python-mock) (replace "python-sh" python-sh-1))))) -(define-public date2name - (let ((commit "50cc8d3957fc0bdc26c65042ab8f0d9f05610283") - (revision "2")) - (package - (name "date2name") - (version (git-version "0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/novoid/date2name") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "16m24dvyg93rpa94401cladjvj5pk3ds5y6sbz54xygdpg9qf8qm")))) - (build-system pyproject-build-system) - (native-inputs - (list python-poetry-core - python-pytest)) - (synopsis "Handling time-stamps and date-stamps in file names") - (description - "By default, date2name gets the modification time of matching files and -directories and adds a datestamp in standard ISO 8601+ format YYYY-MM-DD at -the beginning of the file or directory name.") - (home-page "https://github.com/novoid/date2name") - (license license:gpl3+)))) - (define-public python-braintree (package (name "python-braintree")