From e16d89d4c0ffcceaa89a29dbabd4a382d9a01375 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sun, 2 Feb 2025 01:44:26 +0100 Subject: [PATCH] gnu: Add go-github-com-agnivade-levenshtein. * gnu/packages/golang-xyz.scm (go-github-com-agnivade-levenshtein): New variable. Change-Id: I71383dd703bb9418db184cd4fd0f2fd82a907a48 --- gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 625b5c9b703d6ce9ae187b6400b0d5ecb3cc6e66..a121d93ba1b19b2791252c1884dd5fbaad9f409b 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -17879,6 +17879,31 @@ converting them to the often much more useful @@code{time.Duration}.") #:unpack-path "github.com/dgryski/trifles" #:import-path "github.com/dgryski/trifles/leven")))) +(define-public go-github-com-agnivade-levenshtein + (package + (name "go-github-com-agnivade-levenshtein") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/agnivade/levenshtein") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vg9aj9k4qv96nqqp261qrm9g7kj0axqhv3mm9qvw932l72943hn")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/agnivade/levenshtein")) + (propagated-inputs (list go-github-com-dgryski-trifles-leven + go-github-com-arbovm-levenshtein)) + (home-page "https://github.com/agnivade/levenshtein") + (synopsis "Levenshtein Distance") + (description + "This package provides a Go implementation to calculate Levenshtein +Distance.") + (license license:expat))) ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar