From d2be5c1661e34a298fd6827c2292f3e645b6b005 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 5 Oct 2025 14:24:51 +0100 Subject: [PATCH] gnu: python-waf: Switch to pyproject. * gnu/packages/python-xyz.scm (python-waf)[buld-system]: Switch to pyproject-build-system. [arguments] : Use 'custom. : Move them from custom 'check here. : Use default 'check. Change-Id: I8c3dd383dba774a54f44b725e9b63f35287f4374 --- gnu/packages/python-xyz.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ee6ceb7dac3f1f9e37441a1a0e4dd8f63153dff4..78caacf10f66b25485a8002e8c3941c828ebc82e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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"))))