summaryrefslogtreecommitdiff
path: root/gnu/packages/admin.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-06-14 21:26:49 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-06-18 23:22:40 +0100
commit5380f8bfb94fafeba9222e23a173a2d169266252 (patch)
treed6b62f328639699f490e61d5023262fe743277c8 /gnu/packages/admin.scm
parent56e2d7b239e73db0e0b9e005d52ba05f67942978 (diff)
gnu: sedsed: Improve package.
* gnu/packages/admin.scm (sedsed): Apply G-expressions, fix indentation. [build-system]: Use pyproject. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: I32f04b7634719363b255cc84012da524ac87e03d
Diffstat (limited to 'gnu/packages/admin.scm')
-rw-r--r--gnu/packages/admin.scm50
1 files changed, 26 insertions, 24 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 5a5a78d678a..83dac88b413 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4264,31 +4264,33 @@ in order to be able to find it.
(file-name (git-file-name name version))
(sha256
(base32 "0sy26d60j89fw4z2bfvc7zblb7r1ras5q7f06gaqfg2058z5wj8m"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- (list #:tests? #f ; no tests
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'patch-sed-in
- (lambda _
- (substitute* "sedsed.py"
- (("sedbin = 'sed'")
- (string-append "sedbin = '" (which "sed") "'")))))
- (delete 'build)
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin")))
- ;; Just one file to copy around
- (install-file "sedsed.py" bin))))
- (add-after 'wrap 'symlink
- ;; Create 'sedsed' symlink to "sedsed.py".
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (sed (string-append bin "/sedsed"))
- (sedpy (string-append bin "/sedsed.py")))
- (symlink sedpy sed)))))))
+ (list
+ #:tests? #f ; XXX: test suit requires git set up, run by "./test/run"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-sed-in
+ (lambda _
+ (substitute* "sedsed.py"
+ (("sedbin = 'sed'")
+ (string-append "sedbin = '" (which "sed") "'")))))
+ (delete 'build)
+ (replace 'install
+ (lambda _
+ (let ((bin (string-append #$output "/bin")))
+ ;; Just one file to copy around
+ (install-file "sedsed.py" bin))))
+ (add-after 'wrap 'symlink
+ ;; Create 'sedsed' symlink to "sedsed.py".
+ (lambda _
+ (let* ((bin (string-append #$output "/bin"))
+ (sed (string-append bin "/sedsed"))
+ (sedpy (string-append bin "/sedsed.py")))
+ (symlink sedpy sed)))))))
+ (native-inputs
+ (list python-setuptools
+ python-wheel))
(home-page "https://aurelio.net/projects/sedsed")
(synopsis "Sed sed scripts")
(description