gnu: emacs-org-super-agenda: Update to 1.2 and enable tests.

* gnu/packages/emacs-xyz.scm (emacs-org-super-agenda): Update to 1.2.
[arguments]: Enable tests.
[phases]{prepare-for-tests}: New phase.
[native-inputs]: Add emacs-f and util-linux.
This commit is contained in:
Maxim Cournoyer 2020-12-16 14:44:05 -05:00
parent 15fba3b13d
commit d6dd120be6
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -14856,33 +14856,50 @@ (define-public emacs-org-recent-headings
(license license:gpl3+))) (license license:gpl3+)))
(define-public emacs-org-super-agenda (define-public emacs-org-super-agenda
;; emacs-org-sidebar depends on a newer commit than the latest release version. (package
(let ((commit "a87ca11fbbe72ab6c1c4c3b55ae9e1e93ebfb8ba") (name "emacs-org-super-agenda")
(revision "3")) (version "1.2")
(package (source (origin
(name "emacs-org-super-agenda") (method git-fetch)
(version (git-version "1.1.1" revision commit)) (uri (git-reference
(source (origin (url "https://github.com/alphapapa/org-super-agenda")
(method git-fetch) (commit version)))
(uri (git-reference (file-name (git-file-name name version))
(url "https://github.com/alphapapa/org-super-agenda") (sha256
(commit commit))) (base32
(file-name (git-file-name name version)) "10l9h2n09cql4ih7nc0ma3ghdsq9l5v9xlj1lg7kq67icdwjlsvy"))))
(sha256 (build-system emacs-build-system)
(base32 (arguments
"08b7babdaqblb6jff57an4kbcxk6fkhf668620fipfjgbsnqv3ff")))) `(#:tests? #t
(build-system emacs-build-system) #:test-command '("test/run" "--debug")
(propagated-inputs #:phases
`(("emacs-org" ,emacs-org) (modify-phases %standard-phases
("emacs-dash" ,emacs-dash) (add-after 'unpack 'prepare-for-tests.el
("emacs-ts" ,emacs-ts) (lambda _
("emacs-ht" ,emacs-ht) (make-file-writable "test/test.el")
("emacs-s" ,emacs-s))) (emacs-substitute-variables "test/test.el"
(home-page "https://github.com/alphapapa/org-super-agenda") ("org-super-agenda-test-results-file"
(synopsis "Supercharged Org agenda") (string-append (getcwd) "/test/results.el")))
(description "This package allows items in the Org agenda to be grouped ;; The following test fail (see:
;; https://github.com/alphapapa/org-super-agenda/issues/183).
(substitute* "test/test.el"
((".*org-super-agenda-test--:auto-map.*" all)
(string-append all " (skip-unless nil)\n")))
#t)))))
(native-inputs
`(("emacs-f" ,emacs-f)
("getopt" ,util-linux)))
(propagated-inputs
`(("emacs-org" ,emacs-org)
("emacs-dash" ,emacs-dash)
("emacs-ts" ,emacs-ts)
("emacs-ht" ,emacs-ht)
("emacs-s" ,emacs-s)))
(home-page "https://github.com/alphapapa/org-super-agenda")
(synopsis "Supercharged Org agenda")
(description "This package allows items in the Org agenda to be grouped
into sections while preserving the structure imposed by any timestamps.") into sections while preserving the structure imposed by any timestamps.")
(license license:gpl3+)))) (license license:gpl3+)))
(define-public emacs-org-make-toc (define-public emacs-org-make-toc
(package (package