unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52203] [PATCH 1/2] Add python-librosa
@ 2021-11-30 17:53 jgart via Guix-patches via
  2021-11-30 17:59 ` [bug#52203] [PATCH 1/2] gnu: Add python-resampy jgart via Guix-patches via
  2021-12-26 18:13 ` bug#52203: [PATCH 1/2] " Mathieu Othacehe
  0 siblings, 2 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-11-30 17:53 UTC (permalink / raw)
  To: 52203

Hi Guixers,

Here is a patchset for librosa, a python library for music and audio analysis.

https://librosa.org/

all best,

jgart




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#52203] [PATCH 1/2] gnu: Add python-resampy.
  2021-11-30 17:53 [bug#52203] [PATCH 1/2] Add python-librosa jgart via Guix-patches via
@ 2021-11-30 17:59 ` jgart via Guix-patches via
  2021-11-30 18:00   ` [bug#52203] [PATCH 2/2] gnu: Add python-librosa jgart via Guix-patches via
  2021-12-26 18:13 ` bug#52203: [PATCH 1/2] " Mathieu Othacehe
  1 sibling, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-11-30 17:59 UTC (permalink / raw)
  To: 52203; +Cc: jgart

* gnu/packages/audio.scm (python-resampy): New variable.
---
 gnu/packages/audio.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 694ea1a21b..cc484c0b67 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -102,6 +102,7 @@ (define-module (gnu packages audio)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pulseaudio)  ;libsndfile, libsamplerate
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-science)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages rdf)
@@ -5588,6 +5589,47 @@ (define-public python-pysox
 is silent, and much more.")
       (license license:bsd-3))))
 
+(define-public python-resampy
+  (package
+    (name "python-resampy")
+    (version "0.2.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         ;; PyPi does not include tests.
+         (url "https://github.com/bmcfee/resampy")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs"))))
+    (build-system python-build-system)
+    (arguments
+        `(#:phases
+          (modify-phases %standard-phases
+            (replace 'check
+              (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+                (when tests?
+                  (add-installed-pythonpath inputs outputs)
+                  (invoke "pytest" "tests")))))))
+    (propagated-inputs
+      `(("python-numba" ,python-numba)
+        ("python-numpy" ,python-numpy)
+        ("python-scipy" ,python-scipy)
+        ("python-six" ,python-six)))
+    (native-inputs
+      `(("python-pytest" ,python-pytest)
+        ("python-pytest-cov" ,python-pytest-cov)))
+    (home-page "https://github.com/bmcfee/resampy")
+    (synopsis "Efficient signal resampling")
+    (description
+"@code{python-resampy} implements the band-limited sinc interpolation
+method for sampling rate conversion as described by Julius O. Smith at the
+@url{https://ccrma.stanford.edu/~jos/resample/, Digital Audio Resampling
+Home Page}.")
+    (license license:isc)))
+
 (define-public mda-lv2
   (package
     (name "mda-lv2")
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#52203] [PATCH 2/2] gnu: Add python-librosa.
  2021-11-30 17:59 ` [bug#52203] [PATCH 1/2] gnu: Add python-resampy jgart via Guix-patches via
@ 2021-11-30 18:00   ` jgart via Guix-patches via
  0 siblings, 0 replies; 4+ messages in thread
From: jgart via Guix-patches via @ 2021-11-30 18:00 UTC (permalink / raw)
  To: 52203; +Cc: jgart

* gnu/packages/audio.scm (python-librosa): New variable.
---
 gnu/packages/audio.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index cc484c0b67..b91b97f47e 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -90,6 +90,7 @@ (define-module (gnu packages audio)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages llvm)
+  #:use-module (gnu packages machine-learning)
   #:use-module (gnu packages man)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages mp3) ;taglib
@@ -5630,6 +5631,39 @@ (define-public python-resampy
 Home Page}.")
     (license license:isc)))
 
+(define-public python-librosa
+  (package
+    (name "python-librosa")
+    (version "0.8.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "librosa" version))
+        (sha256
+          (base32 "1cx6rhcvak0hy6bx84jwzpxmwgi92m82w77279akwjmfd3khagf5"))))
+    (build-system python-build-system)
+    (arguments
+    ;; Tests require internet connection to download MATLAB scripts for
+    ;; generating the testing data.
+      `(#:tests? #f))
+    (propagated-inputs
+      `(("python-audioread" ,python-audioread)
+        ("python-decorator" ,python-decorator)
+        ("python-joblib" ,python-joblib)
+        ("python-numba" ,python-numba)
+        ("python-numpy" ,python-numpy)
+        ("python-packaging" ,python-packaging)
+        ("python-pooch" ,python-pooch)
+        ("python-resampy" ,python-resampy)
+        ("python-scikit-learn" ,python-scikit-learn)
+        ("python-scipy" ,python-scipy)
+        ("python-soundfile" ,python-soundfile)))
+    (home-page "https://librosa.org")
+    (synopsis "Python module for audio and music processing")
+    (description
+"@code{librosa} is a python package for music and audio analysis.")
+    (license license:isc)))
+
 (define-public mda-lv2
   (package
     (name "mda-lv2")
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#52203: [PATCH 1/2] Add python-librosa
  2021-11-30 17:53 [bug#52203] [PATCH 1/2] Add python-librosa jgart via Guix-patches via
  2021-11-30 17:59 ` [bug#52203] [PATCH 1/2] gnu: Add python-resampy jgart via Guix-patches via
@ 2021-12-26 18:13 ` Mathieu Othacehe
  1 sibling, 0 replies; 4+ messages in thread
From: Mathieu Othacehe @ 2021-12-26 18:13 UTC (permalink / raw)
  To: jgart; +Cc: 52203-done


Hello,

> Here is a patchset for librosa, a python library for music and audio analysis.

Pushed with various cosmetic fixes.

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-26 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 17:53 [bug#52203] [PATCH 1/2] Add python-librosa jgart via Guix-patches via
2021-11-30 17:59 ` [bug#52203] [PATCH 1/2] gnu: Add python-resampy jgart via Guix-patches via
2021-11-30 18:00   ` [bug#52203] [PATCH 2/2] gnu: Add python-librosa jgart via Guix-patches via
2021-12-26 18:13 ` bug#52203: [PATCH 1/2] " Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).