From 151a5b524f2cd976a2a9c4e3637c34e5975432c5 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 18 Oct 2025 16:49:06 +0200 Subject: [PATCH] gnu: python-clikit: Switch to pyproject. * gnu/packages/python-xyz.scm (python-clikit): [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Add phase 'relax-requirement to tolerate the python-crashtest update. [native-inputs]: Add python-poetry-core, python-pytest, python-pytest-mock. Change-Id: I7149844db523383d326dac2a80b2c8086c94c972 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9164a22b647d3b80b78e665eedcf1d60780df9f6..1683bd212414844a82303bceefbf264af32c2e26 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22810,15 +22810,27 @@ useful to combine multiple data objects as one.") (version "0.6.2") (source (origin - (method url-fetch) - (uri (pypi-uri "clikit" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/sdispater/clikit") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ; no test in the PyPI tarball - (propagated-inputs - (list python-crashtest python-pastel python-pylev)) + (base32 "1l11iriqc61m30fp17yxwkgl5900kiw8x8vw2i93n1jh2lv182y4")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + (("^crashtest.*") + (format #f "crashtest=~s" + #$(package-version + (this-package-input "python-crashtest")))))))))) + (native-inputs (list python-poetry-core python-pytest python-pytest-mock)) + (propagated-inputs (list python-crashtest python-pastel python-pylev)) (home-page "https://github.com/sdispater/clikit") (synopsis "Group of utilities to build command line interfaces") (description