~ruther/guix-local

fe81b5fc261f262ca91fdd5e838c6794bd7b2090 — Nicolas Graves 4 months ago 65c15f0
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>
1 files changed, 10 insertions(+), 11 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +10 -11
@@ 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)