unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49575] [PATCH] Add date2name
@ 2021-07-15 16:05 phodina via Guix-patches via
  2021-07-18 10:24 ` phodina via Guix-patches via
  2021-08-31 11:15 ` [bug#49575] [PATCH v3] gnu: Add python-date2name phodina via Guix-patches via
  0 siblings, 2 replies; 5+ messages in thread
From: phodina via Guix-patches via @ 2021-07-15 16:05 UTC (permalink / raw)
  To: 49575

---
index d8c3fbec07..ac9a5f940d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -105,6 +105,7 @@
 ;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
+;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -904,6 +905,37 @@ iotop, uptime, pidof, tty, taskset, pmap.")
     (properties `((python2-variant . ,(delay python2-psutil))))
     (license license:bsd-3)))

+(define-public python-date2name
+(package
+  (name "date2name")
+  (version "6c8f37277e8ec82aa50f90b8921422be30c4e798")
+  (source (origin
+            (method git-fetch)
+            (uri
+	      (git-reference
+		(url "https://github.com/novoid/date2name")
+		(commit version)))
+            (sha256
+             (base32
+              "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
+  (build-system python-build-system)
+  (arguments
+    `(#:tests? #f
+      #:phases
+      (modify-phases %standard-phases
+	(delete 'build)
+	(replace 'install
+	 (lambda* (#:key outputs #:allow-other-keys)
+	  (let* ((bindir (string-append (assoc-ref outputs "out") "/bin"))
+		 (binary (string-append bindir "/date2name")))
+	    (mkdir-p bindir)
+	    (copy-file "date2name/__init__.py" binary)
+	    (chmod binary #o555)))))))
+  (synopsis "Handling time-stamps and date-stamps in file names")
+  (description "Per default, date2name gets the modification time of matching files and directories and adds a datestamp in standard ISO 8601+ format YYYY-MM-DD (http://datestamps.org/index.shtml) at the beginning of the file- or directoryname.")
+  (home-page "https://github.com/novoid/date2name")
+  (license license:gpl3)))
+
 (define-public python2-psutil
   (let ((base (package-with-python2 (strip-python2-variant python-psutil))))
     (package/inherit base
--
2.31.1




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

end of thread, other threads:[~2021-09-01 21:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 16:05 [bug#49575] [PATCH] Add date2name phodina via Guix-patches via
2021-07-18 10:24 ` phodina via Guix-patches via
2021-07-29 19:43   ` Ludovic Courtès
2021-08-31 11:15 ` [bug#49575] [PATCH v3] gnu: Add python-date2name phodina via Guix-patches via
2021-09-01 21:04   ` bug#49575: " Ludovic Courtès

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).