Subject: [bug#58208] [PATCH v2 8/9] gnu: Add vamp-aubio-plugins.

From: Lilah Tascheter <[email-masked]>
Date: Fri, 2 Jun 2023 00:56:45 -0500

* gnu/packages/audio.scm (vamp-aubio-plugins): New variable.
---
 gnu/packages/audio.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 2931cba488..c34ccb30a5 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -626,6 +626,39 @@ (define-public aubio
 streams from live audio.")
     (license license:gpl3+)))
 
+(define-public vamp-aubio-plugins
+  (package
+    (name "vamp-aubio-plugins")
+    (version "0.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://aubio.org/pub/vamp-aubio-plugins/"
+                                  "vamp-aubio-plugins-" version ".tar.bz2"))
+              (modules '((guix build utils)))
+              (snippet #~(begin ; remove outdated & bundled waf
+                           (delete-file "waf")
+                           (delete-file-recursively "waflib")))
+              (sha256
+               (base32
+                "1gpcg7hih42qmys8a9zylgas3xfrzqijasgaphm43bmiw7vrvxis"))))
+    (build-system waf-build-system)
+    (arguments
+      (list #:tests? #f ; no tests available
+            #:phases
+            #~(modify-phases %standard-phases
+                (add-before 'configure 'setup-waf
+                  (lambda* (#:key inputs #:allow-other-keys)
+                    (copy-file (search-input-file inputs "/bin/waf") "waf"))))))
+    (inputs (list aubio vamp))
+    (native-inputs (list pkg-config python-waf))
+    (home-page "https://aubio.org/vamp-aubio-plugins/")
+    (synopsis "VAMP plugin for audio labelling")
+    (description "vamp-aubio-plugins is a set of VAMP plugins wrapping the audio
+annotation features of Aubio for use in a VAMP host.  Includes plugins for note
+tracking, energy extracting, pitch detection, silence detection, spectral
+description, and beat tracking.")
+    (license license:gpl3+)))
+
 (define-public dsp
   (package
     (name "dsp")
-- 
2.40.1