diff mbox series

[bug#72810,2/4] gnu: Add go-github-com-libp2p-go-libp2p-asn-util.

Message ID c5d3a3600df15a4a7090f3b536040151417aaaf1.1724620806.git.poptsov.artyom@gmail.com
State New
Headers show
Series Add four libp2p libraries. | expand

Commit Message

Artyom V. Poptsov Aug. 25, 2024, 9:23 p.m. UTC
* gnu/packages/golang-web.scm (go-github-com-libp2p-go-libp2p-asn-util): New variable.

Change-Id: Ieb69266f5d637fcbe6b7b5ef1f687852a1a8df20
---
 gnu/packages/golang-web.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index dd226b6c96..28d5b89040 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2201,6 +2201,33 @@  (define-public go-github-com-koron-go-ssdp
 @acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.")
     (license license:expat)))
 
+(define-public go-github-com-libp2p-go-libp2p-asn-util
+  (package
+    (name "go-github-com-libp2p-go-libp2p-asn-util")
+    (version "0.4.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/libp2p/go-libp2p-asn-util")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1c94sq43bl1kp04lllcfrfyiy5z3zcfz0s65sm1vgb2s40zrwpr7"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/libp2p/go-libp2p-asn-util"))
+    (native-inputs (list go-github-com-stretchr-testify))
+    (propagated-inputs (list go-golang-org-x-exp))
+    (home-page "https://github.com/libp2p/go-libp2p-asn-util")
+    (synopsis "Golang library for IP to ASN mapping")
+    (description
+     "@code{go-libp2p-asn-util} is a Golang library to lookup the ASN (Autonomous
+System Number) for an IP address.  It uses the IPv6 to ASN database downloaded from
+https://iptoasn.com/.  Supports only IPv6 addresses for now.")
+    (license license:expat)))
+
 (define-public go-github-com-libp2p-go-nat
   (package
     (name "go-github-com-libp2p-go-nat")