guix_mirror_bot pushed a commit to branch master
in repository guix.

commit b3afd035282aa636e19e50d7f61dbf24985fa0e3
Author: Mathieu Lirzin <[email protected]>
AuthorDate: Sat Jan 17 17:09:56 2026 +0100

    gnu: Add java-hamcrest.
    
    * gnu/packages/java.scm (java-hamcrest): New variable.
    
    Change-Id: Ic9611714ac2066334caea7a41d21bd8b33ef29cc
    Signed-off-by: Julien Lepiller <[email protected]>
---
 gnu/packages/java.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8273b55fbb..8254cf89bf 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2024 Hartmut Goebel <[email protected]>
 ;;; Copyright © 2025 Zheng Junjie <[email protected]>
 ;;; Copyright © 2025 Julian Flake <[email protected]>
+;;; Copyright © 2026 Mathieu Lirzin <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3511,6 +3512,33 @@ libraries and embed them into your own distribution.  
Jar Jar Links includes
 an Ant task that extends the built-in @code{jar} task.")
     (license license:asl2.0)))
 
+(define-public java-hamcrest
+  (package
+    (name "java-hamcrest")
+    (version "3.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/hamcrest/JavaHamcrest/";)
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "07cagv2ncs4y02fmwbll3r4rqpjf3zxs163ync24q3x9fplrxmly"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:tests? #f                      ; Tests require junit
+       #:source-dir "hamcrest/src/main"
+       #:jar-name "hamcrest.jar"))
+    (home-page "https://hamcrest.org/";)
+    (synopsis "Library of matchers for building test expressions")
+    (description
+     "This package provides a library of matcher objects (also known as
+constraints or predicates) allowing @code{match} rules to be defined
+declaratively, to be used in other frameworks.  Typical scenarios include
+testing frameworks, mocking libraries and UI validation rules.")
+    (license license:bsd-3)))
+
 (define-public java-hamcrest-core
   (package
     (name "java-hamcrest-core")

Reply via email to