From 6766ac184c5595dcbb19410582fa98f113967393 Mon Sep 17 00:00:00 2001 From: Luis Felipe Date: Fri, 1 Aug 2025 14:57:32 -0500 Subject: [PATCH] gnu: Add python-wheel-filename. * gnu/packages/python-xyz.scm (python-wheel-filename): New variable. Change-Id: I7e4712f728f5e416bfb8cb0ab1fc023b1c1ac123 Signed-off-by: Vinicius Monego --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 03f2828cfc3..851917c26db 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -165,6 +165,7 @@ ;;; Copyright © 2025 Nguyễn Gia Phong ;;; Copyright © 2025, Cayetano Santos ;;; Copyright © 2025 Jake Forster +;;; Copyright © 2025 Luis Felipe López Acevedo ;;; ;;; This file is part of GNU Guix. ;;; @@ -1175,6 +1176,37 @@ attribution. It uses similarity detection algorithms to compare code files and highlight matching sections.") (license license:agpl3+))) +(define-public python-wheel-filename + (package + (name "python-wheel-filename") + (version "1.4.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "wheel_filename" version)) + (sha256 + (base32 "1zcqq8mydjjrk8x5xlm53bavs51jm40nz42a7500pd6bbm31r2c7")))) + (build-system pyproject-build-system) + (native-inputs (list python-hatchling python-pytest python-pytest-cov)) + (home-page "https://github.com/wheelodex/wheel-filename") + (synopsis "Parse wheel filenames") + (description + "This software allows you to verify +@url{https://packaging.python.org/en/latest/specifications/binary-distribution-format/, wheel} +filenames and parse them into their component fields. + +This package adheres strictly to the standard, with the following +exceptions: + +@itemize @bullet +@item +Version components may be any sequence of the relevant set of +characters; they are not verified for PEP 440 compliance. +@item +The @file{.whl} file extension is matched case-insensitively. +@end itemize") + (license license:expat))) + (define-public python-xmldiff (package (name "python-xmldiff")