From 640b7d6f0c29598dcab28a5bf66ad1ae4450fcef Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 10 Oct 2025 00:45:12 +0200 Subject: [PATCH] gnu: python-robotframework-pythonlibcore: Switch to pyproject. * gnu/packages/python-xyz.scm (python-robotframework-pythonlibcore): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Migrate <#:phases> to <#:test-backend> and <#:test-flags>. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: Ide6662215b9f449e2c7fd31ce5e73f0853d70ad1 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c9a55da9b780ecce7864d148619ebffc5f99788a..510b9c05802ad4b6fd38e02dbd454ef9d78a44ef 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9585,25 +9585,23 @@ SFTP. It has the following main usages: (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "0v89v8va65l6inh0fb34qgxawx6p29pnrmw4n5941yzdi3804rc4")))) - (build-system python-build-system) + (base32 "0v89v8va65l6inh0fb34qgxawx6p29pnrmw4n5941yzdi3804rc4")))) + (build-system pyproject-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "utest/run.py"))))))) + (list + #:test-backend #~'custom + #:test-flags #~(list "utest/run.py"))) (native-inputs (list python-pytest python-pytest-cov python-pytest-mockito - python-robotframework)) + python-robotframework python-setuptools)) (home-page "https://github.com/robotframework/PythonLibCore") (synopsis "Robot Framework Python library tools") - (description "PythonLibCore provides tools for creating larger test -libraries for Robot Framework using Python. The Robot Framework hybrid and -dynamic library APIs give more flexibility for library than the static library -API, but they also set requirements for libraries which need to be implemented -in the library side. PythonLibCore eases the problem by providing a simpler + (description + "PythonLibCore provides tools for creating larger test libraries for +Robot Framework using Python. The Robot Framework hybrid and dynamic library +APIs give more flexibility for library than the static library API, but they +also set requirements for libraries which need to be implemented in the +library side. PythonLibCore eases the problem by providing a simpler interface and by handling all the requirements towards the Robot Framework library APIs.") (license license:asl2.0)))