mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-17 04:20:44 +02:00
gnu: emacs-ts: Update to 0.3.
* gnu/packages/emacs-xyz.scm (emacs-ts): Update to 0.3. [arguments]: Use G-expressions. Remove traling #T. <#:phases>: Skip a slightly different set of tests. [propagated-inputs]: Re-order alphabetically.
This commit is contained in:
parent
3a227cff36
commit
0f8f9844a9
1 changed files with 59 additions and 57 deletions
|
@ -19687,21 +19687,22 @@ tables of contents.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public emacs-ts
|
(define-public emacs-ts
|
||||||
|
;; XXX: Upstream did not tag last release. Use commit matching version
|
||||||
|
;; bump.
|
||||||
|
(let ((commit "552936017cfdec89f7fc20c254ae6b37c3f22c5b"))
|
||||||
(package
|
(package
|
||||||
(name "emacs-ts")
|
(name "emacs-ts")
|
||||||
(version "0.2.2")
|
(version "0.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/alphapapa/ts.el")
|
(url "https://github.com/alphapapa/ts.el")
|
||||||
(commit version)))
|
(commit commit)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0l35gz1hpada2kzascbyqgawa5d3sdyg67gzvak84p9zx62jppn8"))
|
(base32 "18lif159zndl19ddz9rfq12l90770858yasfns21ryl1yrq3aifr"))
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(propagated-inputs
|
|
||||||
(list emacs-s emacs-dash))
|
|
||||||
(arguments
|
(arguments
|
||||||
;; XXX: Three tests are failing because of a timezone-related issue
|
;; XXX: Three tests are failing because of a timezone-related issue
|
||||||
;; with how they're written. On my machine, all the failing test
|
;; with how they're written. On my machine, all the failing test
|
||||||
|
@ -19716,37 +19717,38 @@ tables of contents.")
|
||||||
|
|
||||||
;; The failing tests all have similar problems, but nothing else about
|
;; The failing tests all have similar problems, but nothing else about
|
||||||
;; the library seems particularly off.
|
;; the library seems particularly off.
|
||||||
|
(list
|
||||||
`(#:tests? #t
|
#:tests? #t
|
||||||
#:test-command '("emacs" "--batch"
|
#:test-command #~(list "emacs" "--batch"
|
||||||
"-l" "test/test.el"
|
"-l" "test/test.el"
|
||||||
"-f" "ert-run-tests-batch-and-exit")
|
"-f" "ert-run-tests-batch-and-exit")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'check 'make-tests-writable
|
(add-before 'check 'make-tests-writable
|
||||||
(lambda _
|
(lambda _
|
||||||
(make-file-writable "test/test.el")
|
(make-file-writable "test/test.el")))
|
||||||
#t))
|
|
||||||
(add-before 'check 'delete-failing-tests
|
(add-before 'check 'delete-failing-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
(emacs-batch-edit-file "test/test.el"
|
(emacs-batch-edit-file "test/test.el"
|
||||||
`(progn (progn
|
`(progn
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(dolist (test-regexp
|
(dolist (test-regexp
|
||||||
'("ert-deftest ts-format"
|
'("ert-deftest ts-fill"
|
||||||
|
"ert-deftest ts-format"
|
||||||
"ert-deftest ts-parse-org\\_>"
|
"ert-deftest ts-parse-org\\_>"
|
||||||
"ert-deftest ts-parse-org-element"
|
"ert-deftest ts-parse-org-element"))
|
||||||
"ert-deftest ts-update"))
|
|
||||||
(re-search-forward test-regexp)
|
(re-search-forward test-regexp)
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(kill-sexp)))
|
(kill-sexp)
|
||||||
(basic-save-buffer)))
|
(goto-char (point-min)))
|
||||||
#t)))))
|
(basic-save-buffer))))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(list emacs-dash emacs-s))
|
||||||
(home-page "https://github.com/alphapapa/ts.el")
|
(home-page "https://github.com/alphapapa/ts.el")
|
||||||
(synopsis "Timestamp and date/time library")
|
(synopsis "Timestamp and date/time library")
|
||||||
(description "This package facilitates manipulating dates, times, and
|
(description "This package facilitates manipulating dates, times, and
|
||||||
timestamps by providing a @code{ts} struct.")
|
timestamps by providing a @code{ts} struct.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+))))
|
||||||
|
|
||||||
(define-public emacs-circadian
|
(define-public emacs-circadian
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue