guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/26: gnu: Add go-gopkg-in-irc-v4.


From: guix-commits
Subject: 11/26: gnu: Add go-gopkg-in-irc-v4.
Date: Tue, 7 May 2024 18:24:51 -0400 (EDT)

sharlatan pushed a commit to branch master
in repository guix.

commit 881f9630c99e1aeeb7d539a58ac8fff4bf7a12a7
Author: Jesse Eisses <jesse@eisses.email>
AuthorDate: Fri Apr 26 10:01:58 2024 +0200

    gnu: Add go-gopkg-in-irc-v4.
    
    * gnu/packages/irc.scm (go-gopkg-in-irc-v4): New variable.
    
    Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
    Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
    Change-Id: Ie1afdde3d1a23154e592445b5ce91e5918c6c822
---
 gnu/packages/irc.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index 1b291f54b9..33cf3e8043 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -825,6 +825,40 @@ parsers")
 building block for other projects.")
     (license license:expat)))
 
+(define-public go-gopkg-in-irc-v4
+  (package
+    (inherit go-gopkg-in-irc-v3)
+    (name "go-gopkg-in-irc-v4")
+    (version "4.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gopkg.in/irc.v4";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1yr7m1vz7fj0jbmk8njg54nyc9hx4kv24k13sjc4zj5fyqljj0p2"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "gopkg.in/irc.v4"
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; testcases is renamed to _testcases in v4 for some reason.
+          (add-before 'check 'adjust-testcases-data
+            (lambda* (#:key import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (mkdir-p "./_testcases/tests")
+                (for-each
+                 (lambda (file)
+                   (install-file file "./_testcases/tests"))
+                 (find-files
+                  #$(this-package-native-input "python-irc-parser-tests") 
"\\.yaml$"))))))))
+    (propagated-inputs
+     (modify-inputs (package-propagated-inputs go-gopkg-in-irc-v3)
+       (append go-golang-org-x-time)))))
+
 (define-public chathistorysync
   (package
     (name "chathistorysync")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]