From 869de1fc16e68d02d111ee073bd1ebc894c72683 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Sun, 7 Dec 2025 09:47:56 +0100 Subject: [PATCH] gnu: emacs-test-simple: Fix build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/emacs-xyz.scm (emacs-test-simple)[source]: Switch to git-fetch. [arguments]: Add ’check #:phase. Change-Id: I06314e490b655c4f6637a13ae1692d0bd306c1c5 --- gnu/packages/emacs-xyz.scm | 50 +++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index a4a35d6bd4ee48fa34afe0cc794af091e2efa028..301f5029acfbd211c574ef05b1e06613aa8b1fb7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -15683,25 +15683,41 @@ in the modeline by default.") (license license:gpl3+)))) (define-public emacs-test-simple - (package - (name "emacs-test-simple") - (version "1.3.1") - (source - (origin - (method url-fetch) - (uri (string-append "https://elpa.gnu.org/packages/test-simple-" - version ".el")) - (sha256 - (base32 - "11sgc7187l1a4f1x1f6z58dy7pc7n1999id50rjifkvk901x0qd1")))) - (build-system emacs-build-system) - (home-page "https://github.com/rocky/emacs-test-simple") - (synopsis "Simple unit test framework for Emacs Lisp") - (description - "Test Simple is a simple unit test framework for Emacs Lisp. It + (let ((commit "da8ddb6fecb820c8e0809ac0892374e755e4efec")) ;version bump + (package + (name "emacs-test-simple") + (version "1.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rocky/emacs-test-simple/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "18a9d1n2xc2fqimvsg0nkvizn7y7sb6ap5i9al526cp40l0yky3n")))) + (build-system emacs-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "test" + (invoke "emacs" "--batch" + "-l" "test-basic.el" + "-l" "test-buffer.el" + "-l" "test-fns.el" + "-l" "test-no-clear.el")))))))) + (home-page "https://github.com/rocky/emacs-test-simple") + (synopsis "Simple unit test framework for Emacs Lisp") + (description + "Test Simple is a simple unit test framework for Emacs Lisp. It alleviates the need for context macros, enclosing specifications or required test tags. It supports both interactive and non-interactive use.") - (license license:gpl3+))) + (license license:gpl3+)))) (define-public emacs-load-relative (package