From 04db36eb708b5560aa049f324e059478670f0886 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 13 Aug 2025 17:50:29 +0200 Subject: [PATCH] gnu: nerd-dictation: Switch to pyproject. * gnu/packages/machine-learning.scm (nerd-dictation): [build-system]: Switch to pyproject-build-system. [arguments]: Improve style using gexps. [native-inputs]: Add python-setuptools, python-wheel. [description]: Improve style. Change-Id: I207d145149a6175b37b005d45e12c8bb77a033df Signed-off-by: Sharlatan Hellseher --- gnu/packages/machine-learning.scm | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 7f023d2ba48f7b1ff02de17c9830883781c4311f..ea09fdb1be80b73961ac2211a4a994ff7f13b874 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -6657,22 +6657,25 @@ simple speech recognition.") (origin (method git-fetch) (uri (git-reference - (url "https://github.com/ideasman42/nerd-dictation") - (commit commit))) + (url "https://github.com/ideasman42/nerd-dictation") + (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "0frdpswv6w3cwj3c7wd5w8gj3s1hvpdwd48qhfhfxf7imahz9bqf")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'chdir - (lambda _ (chdir "package/python")))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "package/python")))))) + (native-inputs (list python-setuptools python-wheel)) (propagated-inputs (list python-vosk)) (home-page "https://github.com/ideasman42/nerd-dictation") (synopsis "Offline speech-to-text for desktop Linux") - (description "\ -This package provides simple access speech to text for using in + (description + "This package provides simple access speech to text for using in Linux without being tied to a desktop environment, using the @code{vosk-api}. The user configuration lets you manipulate text using Python string operations. It has zero overhead, as this relies on manual activation and