From 6613e5e6b690881e4e65794b534535a8325d377b Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 18 Oct 2025 13:03:52 +0200 Subject: [PATCH] gnu: python-plac: Switch to pyproject. * gnu/packages/python-xyz.scm (python-plac): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-pytest, python-setuptools. [arguments, description]: Improve style. Change-Id: I1ad6ae1a9115f4a498662167914cc2caad5a1af9 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6395878a12d2fd630eadb4e749f1b63c08927329..83ce4c125d874871b90250d877084310e7325d7e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15897,27 +15897,32 @@ multiprecision arithmetic.") (version "1.3.5") (source (origin - (method url-fetch) - (uri (pypi-uri "plac" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/ialbert/plac") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "1410h6jw1ksi24kb55xzkwqzba2qqjwiga1s354bf3s5s1jdig9q")))) - (build-system python-build-system) + (base32 "1n0cbil1snbn0diw8zjm7qs77zpbgmf2k76mc2jknhk1hbnksyak")))) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-tkinter - (lambda _ - (substitute* "plac_tk.py" - (("from Tkinter import Tk") - "from tkinter import Tk") - (("from ScrolledText import ScrolledText") - "from tkinter.scrolledtext import ScrolledText"))))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-tkinter + (lambda _ + (substitute* "plac_tk.py" + (("from Tkinter import Tk") + "from tkinter import Tk") + (("from ScrolledText import ScrolledText") + "from tkinter.scrolledtext import ScrolledText"))))))) (native-inputs - `(("python-tkinter" ,python "tk"))) + (list (list python "tk") python-pytest python-setuptools)) (home-page "https://github.com/ialbert/plac") (synopsis "Command line arguments parser") - (description "This package can generate command line parameters from -function signatures.") + (description + "This package can generate command line parameters from function +signatures.") (license license:bsd-3))) (define-public python-syllables