mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
c7a8f7cd61
commit
f27d2aea8e
1 changed files with 19 additions and 17 deletions
|
@ -36841,25 +36841,27 @@ key-value pairs from a @code{.env} file and set them as environment variables.")
|
||||||
(commit commit)))
|
(commit commit)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
|
||||||
"1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no tests
|
(list
|
||||||
|
#:tests? #f ;no tests
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(delete 'build)
|
(delete 'build)
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let* ((bindir (string-append (assoc-ref outputs "out") "/bin"))
|
(let* ((bindir (string-append #$output "/bin"))
|
||||||
(binary (string-append bindir "/date2name")))
|
(binary (string-append bindir "/date2name")))
|
||||||
(mkdir-p bindir)
|
(mkdir-p bindir)
|
||||||
(copy-file "date2name/__init__.py" binary)
|
(copy-file "date2name/__init__.py" binary)
|
||||||
(chmod binary #o555)))))))
|
(chmod binary #o555)))))))
|
||||||
|
(native-inputs (list python-setuptools-next))
|
||||||
(synopsis "Handling time-stamps and date-stamps in file names")
|
(synopsis "Handling time-stamps and date-stamps in file names")
|
||||||
(description "By default, date2name gets the modification time of matching
|
(description
|
||||||
files and directories and adds a datestamp in standard ISO 8601+ format
|
"By default, date2name gets the modification time of matching files and
|
||||||
YYYY-MM-DD at the beginning of the file or directory name.")
|
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")
|
(home-page "https://github.com/novoid/date2name")
|
||||||
(license license:gpl3+))))
|
(license license:gpl3+))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue