guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 2a7d1f9eb25282ea17a7be5894cc6752310c78c2
Author: Giacomo Leidi <[email protected]>
AuthorDate: Fri Sep 12 19:49:30 2025 +0200

    gnu: Add erlang-mochiweb.
    
    * gnu/packages/erlang-xyz.scm (erlang-mochiweb): New variable.
    
    Change-Id: I0c58ffb9d1c279b290a195b3663ee16b3feb8b95
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/packages/erlang-xyz.scm                        | 23 ++++++++++++++++++++
 ...lang-mochiweb-disable-known-to-fail-tests.patch | 25 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/gnu/packages/erlang-xyz.scm b/gnu/packages/erlang-xyz.scm
index 397f76c55e..2dfa609a6f 100644
--- a/gnu/packages/erlang-xyz.scm
+++ b/gnu/packages/erlang-xyz.scm
@@ -365,6 +365,29 @@ Erlang.")
     (home-page "https://hex.pm/packages/mimerl";)
     (license license:expat)))
 
+(define-public erlang-mochiweb
+  (package
+    (name "erlang-mochiweb")
+    (version "3.2.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/mochi/mochiweb";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0npsgdz2jfg633zv5q5q7y3qzz58wva0y6k9calswybq0mx6243v"))
+       (patches
+        (search-patches
+         "erlang-mochiweb-disable-known-to-fail-tests.patch"))))
+    (build-system rebar-build-system)
+    (synopsis "MochiMedia Web Server")
+    (description "This package provides @code{MochiMedia}, an Erlang Web
+Server.")
+    (home-page "https://github.com/mochi/mochiweb";)
+    (license license:expat)))
+
 (define-public erlang-pkix
   (package
     (name "erlang-pkix")
diff --git 
a/gnu/packages/patches/erlang-mochiweb-disable-known-to-fail-tests.patch 
b/gnu/packages/patches/erlang-mochiweb-disable-known-to-fail-tests.patch
new file mode 100644
index 0000000000..b4b1073df0
--- /dev/null
+++ b/gnu/packages/patches/erlang-mochiweb-disable-known-to-fail-tests.patch
@@ -0,0 +1,25 @@
+From 7fc5dfe2d1ab999f280edaad10426fdc51801287 Mon Sep 17 00:00:00 2001
+From: Giacomo Leidi <[email protected]>
+Date: Fri, 12 Sep 2025 19:14:49 +0200
+Subject: [PATCH] Disable known to fail bugs.
+
+---
+ test/mochiweb_http_tests.erl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/mochiweb_http_tests.erl b/test/mochiweb_http_tests.erl
+index 8b8ba64..0fbb7fb 100644
+--- a/test/mochiweb_http_tests.erl
++++ b/test/mochiweb_http_tests.erl
+@@ -3,7 +3,7 @@
+ -include_lib("eunit/include/eunit.hrl").
+ -include("mochiweb_test_util.hrl").
+ 
+-has_acceptor_bug_test_() ->
++has_acceptor_bug_() ->
+     {setup, fun start_server/0, fun mochiweb_http:stop/1,
+      fun has_acceptor_bug_tests/1}.
+ 
+-- 
+2.51.0
+

Reply via email to