3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: emacs-skeletor: Improve package style.

* gnu/packages/emacs-xyz.scm (emacs-skeletor)[arguments]: Use G-expressions.
<#:phases>: Remove unnecessary phase. Remove trailing #T.
[propagated-inputs]: Reorder inputs alphabetically.
This commit is contained in:
Nicolas Goaziou 2023-01-27 23:20:16 +01:00
parent b4639c0ed0
commit 1163349b70
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -12458,33 +12458,27 @@ empty @file{.projectile} file in it.")
(base32
"12bdgykfh4mwsqdazxjdvha62h3q3v33159ypy91f6x59y01fi0n"))))
(build-system emacs-build-system)
(propagated-inputs
(list emacs-s emacs-f emacs-dash emacs-let-alist))
(arguments
(list
#:include #~(cons "^project-skeletons\\/" %default-include)
#:tests? #true
#:test-command #~(list "ert-runner")
#:phases
#~(modify-phases %standard-phases
;; XXX: one failing test involving initializing a git repo.
(add-before 'check 'remove-git-test
(lambda _
(emacs-batch-edit-file "test/skeletor-test.el"
`(progn
(goto-char (point-min))
(re-search-forward "ert-deftest initialises-git-repo")
(beginning-of-line)
(kill-sexp)
(basic-save-buffer))))))))
(native-inputs
(list emacs-ert-runner))
(arguments
`(#:include (cons "^project-skeletons\\/" %default-include)
;; XXX: one failing test involving initializing a git repo
#:phases
(modify-phases %standard-phases
(add-before 'check 'make-test-writable
(lambda _
(make-file-writable "test/skeletor-test.el")
#t))
(add-before 'check 'remove-git-test
(lambda _
(emacs-batch-edit-file "test/skeletor-test.el"
`(progn
(progn
(goto-char (point-min))
(re-search-forward
"ert-deftest initialises-git-repo")
(beginning-of-line)
(kill-sexp))
(basic-save-buffer)))
#t)))
#:tests? #t
#:test-command '("ert-runner")))
(propagated-inputs
(list emacs-dash emacs-f emacs-let-alist emacs-s))
(home-page "https://github.com/chrisbarrett/skeletor.el")
(synopsis "Project skeletons for Emacs")
(description "This package provides project templates and automates the