summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-06 16:43:12 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-06 22:08:04 +0100
commitf27d2aea8ed89066b74ffcd86b91f3f3ecab136f (patch)
tree577b57be0f87706b3e600160228b4132e6871fbb /gnu/packages/python-xyz.scm
parentc7a8f7cd61bebe03b2d4048087941114df675b7b (diff)
gnu: date2name: Switch to pyproject.
* gnu/packages/python-xyz.scm (date2name): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools-next. [description, arguments]: Improve style. Change-Id: I2fb064cc19992887391f7eac35c1129d3234dbc7 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm36
1 files changed, 19 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0046cdace5..64bc926e9c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -36841,25 +36841,27 @@ key-value pairs from a @code{.env} file and set them as environment variables.")
(commit commit)))
(file-name (git-file-name name version))
(sha256
- (base32
- "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
- (build-system python-build-system)
+ (base32 "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ; no tests
- #: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)))))))
+ (list
+ #:tests? #f ;no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'build)
+ (replace 'install
+ (lambda _
+ (let* ((bindir (string-append #$output "/bin"))
+ (binary (string-append bindir "/date2name")))
+ (mkdir-p bindir)
+ (copy-file "date2name/__init__.py" binary)
+ (chmod binary #o555)))))))
+ (native-inputs (list python-setuptools-next))
(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.")
+ (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+))))