~ruther/guix-local

d2be5c1661e34a298fd6827c2292f3e645b6b005 — Sharlatan Hellseher 4 months ago 635f786
gnu: python-waf: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-waf)[buld-system]: Switch to
pyproject-build-system.
[arguments] <test-backend>: Use 'custom.
<test-flags>: Move them from custom 'check here.
<phases>: Use default 'check.

Change-Id: I8c3dd383dba774a54f44b725e9b63f35287f4374
1 files changed, 7 insertions(+), 7 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +7 -7
@@ 16479,16 16479,20 @@ Python 2 and Python 3.")
(define-public python-waf
  (package
    (name "python-waf")
    (version "2.0.19")
    (version "2.0.19") ;TODO: newer version brakes API
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://waf.io/" "waf-" version ".tar.bz2"))
       (sha256
        (base32 "19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'custom
      ;; TODO: Project provides integration tests, see
      ;; <.pipelines/Jenkinsfile> how to run them.
      #:test-flags #~(list "waf" "--version")
      #:phases
      #~(modify-phases %standard-phases
          (replace 'build


@@ 16496,11 16500,7 @@ Python 2 and Python 3.")
              ;; XXX: Find a way to add all extra tools.
              (let ((tools '("gccdeps" "clang_compilation_database")))
                (invoke "python" "waf-light" "configure" "build"
                        (string-append "--tools="
                                       (string-join tools ","))))))
          (replace 'check
            (lambda _
              (invoke "python" "waf" "--version")))
                        (string-append "--tools=" (string-join tools ","))))))
          (replace 'install
            (lambda _
              (install-file "waf" (string-append #$output "/bin"))))