From patchwork Mon May 5 22:03:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 42341 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9BE0B27BC4B; Mon, 5 May 2025 23:25:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4DE6E27BC49 for ; Mon, 5 May 2025 23:25:38 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uC4FG-0004cX-KH; Mon, 05 May 2025 18:25:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uC4FE-0004aq-G5 for guix-patches@gnu.org; Mon, 05 May 2025 18:25:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uC4FE-00064l-3q for guix-patches@gnu.org; Mon, 05 May 2025 18:25:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=sSqW/OuPAdaf/4PinXmN/RXoAiyxBKjtWjrD+VN2Hio=; b=ePI76KymWer/kFTqlFuHqOkt2ERM6kKND5zwuDbdkgHhF2/IorYDiWQO87cdqJMoo0R9QqlJ01uOOZOQPvrfHYziRf9rHf2zF3zqXBn1YJEbcF9iEib5rA5ISGJuVUDhyaHTOA4DsmZ4XToZewILth1UFFGSBOIpEPmcEzNzl3MA20TVe6QDp8qqGpIFdH7FXvU0Rw4AAOyQeV5wbBtbtNWAbmMcET6EhMIGDUL0Ree5QSIJ3A3EpEI8j7eIzww4Yd53v52QqqBpRlIBSEDGmAGOeay6SfZTXVn+wffsw5JV2IxBVu2BD5nURYAo4l45NPxTtSWOES0vR1daROcGFA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uC4FD-0005cQ-Oo for guix-patches@gnu.org; Mon, 05 May 2025 18:25:03 -0400 Subject: bug#77930: [PATCH] gnu: Add guile-slugify. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 05 May 2025 22:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 77930 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ayush Jha Cc: 77930-done@debbugs.gnu.org Mail-Followup-To: 77930@debbugs.gnu.org, ludo@gnu.org, ayushjha@protonmail.com Received: via spool by 77930-done@debbugs.gnu.org id=D77930.174648389821518 (code D ref 77930); Mon, 05 May 2025 22:25:03 +0000 Received: (at 77930-done) by debbugs.gnu.org; 5 May 2025 22:24:58 +0000 Received: from localhost ([127.0.0.1]:43894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uC4F7-0005ax-VG for submit@debbugs.gnu.org; Mon, 05 May 2025 18:24:58 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:60553) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uC4F4-0005aT-Qf for 77930-done@debbugs.gnu.org; Mon, 05 May 2025 18:24:55 -0400 Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludo@gnu.org; dmarc=fail (p=none dis=none) d=gnu.org X-IronPort-AV: E=Sophos;i="6.15,264,1739833200"; d="scan'208";a="115891453" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2025 00:24:48 +0200 From: Ludovic =?utf-8?q?Court=C3=A8s?= In-Reply-To: (Ayush Jha's message of "Thu, 24 Apr 2025 20:45:40 +0000") References: <2ea04e5c42a51841cb41aefe4ce5de424d22479e.1745087957.git.ayushjha@protonmail.com> Date: Tue, 06 May 2025 00:03:02 +0200 Message-ID: <87ikme3ecp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, Ayush Jha writes: > * gnu/packages/guile-xyz.scm (guile-slugify): New variable. > > Change-Id: I4e7ab7a4821f53cf7372388efa07cea2fd3c17ef > Signed-off-by: Ayush Jha [...] > + (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.") ^ I removed the extra column of whitespace and address minor issues reported by ‘guix lint’: Applied, thanks! Ludo’. diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index d6051f38ec..e213f17502 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -5507,7 +5507,7 @@ (define-public guile-slugify (origin (method git-fetch) (uri (git-reference - (url "https://github.com/ayys/guile-slugify.git") + (url "https://github.com/ayys/guile-slugify") (commit version))) (file-name (git-file-name name version)) (sha256 @@ -5516,14 +5516,14 @@ (define-public guile-slugify '("guix.scm" "test.scm"))))) (build-system guile-build-system) (native-inputs (list guile-3.0)) - (home-page "http://github.com/ayys/slugify.scm") + (home-page "https://github.com/ayys/guile-slugify") (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.") + "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 @code{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