~ruther/guix-local

7fd8b57c20a74d66ba4451790116aa3080038a04 — Nicolas Graves 6 months ago fa772b1
gnu: python-robotframework-stacktrace: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-robotframework-stacktrace):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Run guix style -S arguments.
<phases>: Remove unused custom 'check; add 'set-version.
[native-inputs]: Add python-setuptools.

Change-Id: Ib44bb2df810c6bda544df1fc9ad6ae5eca5df5ce
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 18 insertions(+), 13 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +18 -13
@@ 9482,22 9482,27 @@ tunnels in the background, using Python.")
    (version "0.4.1")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "robotframework-stacktrace" version))
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/MarketSquare/robotframework-stacktrace")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "19gnwr7da1zz9clhwsmvqfjf02d195i61lzpq4253dcsgrpb6v79"))))
    (build-system python-build-system)
        (base32 "1nkzcgc1xwbx8d5qq47aj23qa7dn1ml033bjwrgqh55x3miphlcq"))))
    (build-system pyproject-build-system)
    (arguments
     ;; The test suite fails (see:
     ;; XXX: The test suite fails (see:
     ;; https://github.com/MarketSquare/robotframework-stacktrace/issues/4).
     `(#:tests? #f
       #:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               (with-directory-excursion "tests"
                 (invoke "python" "-m" "robot" "."))))))))
     (list
      #:tests? #f
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-version
            (lambda _
              (substitute* "setup.py"
                (("VERSION =.*")
                 (string-append "VERSION = '" #$version "'"))))))))
    (native-inputs (list python-setuptools))
    (propagated-inputs (list python-robotframework))
    (home-page "https://github.com/MarketSquare/robotframework-stacktrace")
    (synopsis "Robot Framework listener to print a stack trace on error")