summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-12 20:16:21 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-13 12:00:50 +0100
commitfe81b5fc261f262ca91fdd5e838c6794bd7b2090 (patch)
treec8becb47340c7c216bd54095a6e9acddb33e507b /gnu/packages/python-xyz.scm
parent65c15f0af83a6e5eef8cded6993edc1fe7e7d471 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm21
1 files changed, 10 insertions, 11 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d9a7c320e90..3403a1fb73a 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)