guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 6046e27b930f64917b4dc6306fda206b828c963e
Author: Thanos Apollo <[email protected]>
AuthorDate: Sun Mar 1 06:25:15 2026 +0200

    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 <[email protected]>
    Modified-by: Cayetano Santos <[email protected]>
---
 gnu/packages/emacs-xyz.scm | 34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b7554f7bfd..dd2cb130e0 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

Reply via email to