guix_mirror_bot pushed a commit to branch master
in repository guix.
commit fe81b5fc261f262ca91fdd5e838c6794bd7b2090
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 12 20:16:21 2025 +0200
gnu: python-patch-ng: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-patch-ng):
[build-system]: Switch to pyproject-build-system.
[arguments]: Migrate <#:phases> to <#:test-backend, #:test-flags>.
[native-inputs]: Add python-setuptools.
[description]: Improve style.
Change-Id: I2f019c51f036ce96277419dff8151a1e15bebf04
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d9a7c320e9..3403a1fb73 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11212,25 +11212,24 @@ parser for Node.js.")
(version "1.18.1")
(source
(origin
- (method git-fetch) ;no tests in PyPI archive
+ (method git-fetch)
(uri (git-reference
(url "https://github.com/conan-io/python-patch-ng")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32
- "1kr3h0bkcr02zyfsmwmxfv5b4b9vf3bhsvrlwp6cwrfy3q3qnyq8"))))
- (build-system python-build-system)
+ (base32 "1kr3h0bkcr02zyfsmwmxfv5b4b9vf3bhsvrlwp6cwrfy3q3qnyq8"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "tests/run_tests.py" "-v")))))))
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "tests/run_tests.py" "-v")))
+ (native-inputs (list python-pytest python-setuptools))
(home-page "https://github.com/conan-io/python-patch-ng")
(synopsis "Python library to parse and apply unified diffs")
- (description "Patch NG (New Generation) is a command and Python library to
-parse and apply unified diffs. It has features such as:
+ (description
+ "Patch NG (New Generation) is a command and Python library to parse and
+apply unified diffs. It has features such as:
@itemize
@item automatic correction of common patch formatting corruption
@item patch format detection (SVN, Hg, Git)