diff options
| author | Thanos Apollo <public@thanosapollo.org> | 2026-03-01 06:25:15 +0200 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-03-02 14:49:30 +0100 |
| commit | 6046e27b930f64917b4dc6306fda206b828c963e (patch) | |
| tree | dc5ab602b433e2a91f1d994a6735b73511767e18 /gnu | |
| parent | 745a005c0014af507659c2f603f3bf4b52408e46 (diff) | |
gnu: emacs-flycheck: Update to 36.0.
* gnu/packages/emacs-xyz.scm (emacs-flycheck): Update to 36.0.
[propagated-inputs]: Drop emacs-dash.
[native-inputs]: Add emacs-buttercup and python-minimal-wrapper.
[arguments]<#:phases>: Rename 'change-flycheck-version' to
'fix-version-constant'; add 'remove-unsuitable-tests'.
Merges guix/guix!6783
Change-Id: I54cd381fa60ce6b5bd79918d3115562a1dec3dfb
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Modified-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/emacs-xyz.scm | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index b7554f7bfd1..dd2cb130e0a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -3921,7 +3921,7 @@ on the Flexoki colour scheme by Steph Ango.") (define-public emacs-flycheck (package (name "emacs-flycheck") - (version "35.0") + (version "36.0") (source (origin (method git-fetch) @@ -3929,30 +3929,32 @@ on the Flexoki colour scheme by Steph Ango.") (url "https://github.com/flycheck/flycheck/") (commit (string-append "v" version)))) (sha256 - (base32 "1jj9w1j1qgpj3cdihwkgaj7nd714a0sgsydh413j9rsv6a3d4cgg")) + (base32 "0gndi96ijxqj6k9qy5d4l0cwqh0ky7w1p27z90ipkn05xz4j3zp5")) (file-name (git-file-name name version)))) (build-system emacs-build-system) - (propagated-inputs - (list emacs-dash)) (native-inputs - (list emacs-shut-up)) + (list emacs-buttercup emacs-shut-up python-minimal-wrapper)) (arguments (list + #:test-command #~(list "buttercup" "-L" "." "-L" "test/specs" + "test/specs") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'change-flycheck-version + (add-after 'unpack 'fix-version-constant (lambda _ (substitute* "flycheck.el" - (("\\(pkg-info-version-info 'flycheck\\)") - (string-append "\"" #$version "\"")))))) - ;; TODO: many failing tests - #:tests? #f - #:test-command - #~(list "emacs" "-Q" "--batch" - "-L" "." - "--load" "test/flycheck-test" - "--load" "test/run.el" - "-f" "flycheck-run-tests-main"))) + (("\\(defconst flycheck-version \"[^\"]*\"") + (string-append + "(defconst flycheck-version \"" + #$version "\""))))) + (add-after 'unpack 'remove-unsuitable-tests + (lambda _ + ;; Requires network access. + (delete-file "test/specs/test-melpa-package.el") + ;; Expects an autoloads file not present in Guix. + (substitute* "test/specs/test-util.el" + (("\\(it \"returns true for autoloads with backing file\"" all) + (string-append "(xit " (substring all 4))))))))) (home-page "https://www.flycheck.org") (synopsis "On-the-fly syntax checking") (description |
