Subject: [PATCH] gnu: Add guile-slugify.

From: Ayush Jha <[email-masked]>
Date: Thu, 24 Apr 2025 20:45:40 +0000

* gnu/packages/guile-xyz.scm (guile-slugify): New variable.

Change-Id: I4e7ab7a4821f53cf7372388efa07cea2fd3c17ef
Signed-off-by: Ayush Jha <[email-masked]>
---
 gnu/packages/guile-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index a8abefa474..449420c4b8 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -5518,6 +5518,33 @@ (define (guile-sls->sls file)
 gnome-keyring, and many more.")
     (license license:expat)))
 
+(define-public guile-slugify
+  (package
+    (name "guile-slugify")
+    (version "0.1.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ayys/guile-slugify.git")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1xg6dhcnd6m5z9d7yzsa2vzdhzgifyk92gkfb6md8rbc8dilp2rh"))
+       (snippet #~(for-each delete-file
+                            '("guix.scm" "test.scm")))))
+    (build-system guile-build-system)
+    (native-inputs (list guile-3.0))
+    (home-page "http://github.com/ayys/slugify.scm")
+    (synopsis "Convert arbitrary string to URL-friendly identifier in Guile")
+    (description
+     "This package provides a procedure for converting strings into URL-friendly
+ slugs. A slug is a simplified version of a string, often used in URLs, that
+ contains only lowercase letters, digits, and hyphens. This package is inspired
+ by the 'slugify' function in the Django web framework. It is useful for
+ generating human-readable identifiers from arbitrary text.")
+    (license license:gpl3+)))
+
 (define-public guile-webutils
   (let ((commit "d309d65a85247e4f3cea63a17defd1e6d35d821f")
         (revision "1"))

base-commit: 85b5c2c8f66aed05730f6c7bdeabfaadf619bb8f
-- 
2.38.1