From 91a2f2629be43a4aa288e39a49a8afea21a3ef7f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Jun 2025 12:05:08 +0100 Subject: [PATCH] gnu: shell-functools: Update to 0.3.0-0.530e3b6. * gnu/packages/shellutils.scm (shell-functools): Update to 0.3.0-0.530e3b6. [source]: Use the latest commit providing comparability with Python 3.11 and test fixtures. [build-system]: Use pyproject. [native-inputs]: Add python-pytest and python-hatchling. Change-Id: Ic6f6a5cfd235f1699abc911c2c811a85df3d5e05 --- gnu/packages/shellutils.scm | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index e688e243e2b..fb744a3c324 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -905,19 +905,26 @@ bookmark your favourite commands.") (license license:asl2.0))) (define-public shell-functools + ;; v0.3.0 was released in 2018, there are changes providing fixes to the + ;; test suite, use the latest commit. + (let ((commit "530e3b6f098c41869f9dc47d1a3005e12ce300c0") + (revision "0")) (package (name "shell-functools") - (version "0.3.0") + (version (git-version "0.3.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/sharkdp/shell-functools") - (commit (string-append "v" version)))) + (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 - "0d6zzg7cxfrzwzh1wmpj7q85kz33sak6ac59ncsm6dlbin12h0hi")))) - (build-system python-build-system) + "0l23n5anppxds4678qnh84mykbdb7qxyjrxxjzm7kin7izfzczpa")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest + python-hatchling)) (home-page "https://github.com/sharkdp/shell-functools/") (synopsis "Functional programming tools for the shell") (description "This package provides higher order functions like map, @@ -925,7 +932,7 @@ filter, foldl, sort_by and take_while as simple command-line tools. Following the UNIX philosophy, these commands are designed to be composed via pipes. A large collection of functions such as basename, replace, contains or is_dir are provided as arguments to these commands.") - (license license:expat))) + (license license:expat)))) (define-public rig (package