From 53201779c5ca4199e1d16b0621f18c78943ddf6f Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 12 Oct 2025 19:31:02 +0200 Subject: [PATCH] gnu: python-pluginbase: Switch to pyproject. * gnu/packages/python-xyz.scm (python-pluginbase): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. [arguments, description]: Improve style. Change-Id: I3342026c622fe72de51602816ef4b600eb652fc5 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 59131368d8b48bc13d5e45413c62a091092432c9..b0abe2bb0a44c5352046e5c82770c55f8b75247a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11137,23 +11137,28 @@ shares the same interface.") (version "1.0.1") (source (origin - (method url-fetch) - (uri (pypi-uri "pluginbase" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitsuhiko/pluginbase") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "11z2vvbp13828y0x3w39f29p9r9xcix7h7c4fff2w8yfiylk6v7z")))) - (build-system python-build-system) + (base32 "16c089ka8z4wb4mnx6a3dbvibibgzvawm8zgkp7ppadsgb3lc357")))) + (build-system pyproject-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "make" "test"))))))) - (native-inputs (list python-pytest)) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list python-pytest python-setuptools)) (home-page "https://github.com/mitsuhiko/pluginbase") (synopsis "Simple but flexible plugin system for Python") - (description "PluginBase is a library useful in the development of -flexible plugin systems in Python.") + (description + "PluginBase is a library useful in the development of flexible plugin +systems in Python.") (license license:bsd-3))) (define-public python-node-semver