Package Details: python-librosa 0.9.2-1

Git Clone URL: https://aur.archlinux.org/python-librosa.git (read-only, click to copy)
Package Base: python-librosa
Description: Python library for music and audio analysis
Upstream URL: https://librosa.org
Licenses: ISC
Submitter: petronny
Maintainer: petronny (AutoUpdateBot)
Last Packager: AutoUpdateBot
Votes: 7
Popularity: 0.124770
First Submitted: 2017-08-20 13:38 (UTC)
Last Updated: 2022-07-22 08:24 (UTC)

Latest Comments

SpotlightKid commented on 2022-05-19 13:08 (UTC) (edited on 2022-05-19 13:10 (UTC) by SpotlightKid)

Here's a diff for PKGBUILD (full file) to update the package to the latest release 0.9.1:

  • Updated pkgver.
  • Used sha256sum check sum.
  • Added python-packaging to depends.
  • Added --skip-build option to python setup install call in package function.
diff --git a/PKGBUILD b/PKGBUILD
index bc0c9d1..f379898 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,20 @@

 pkgname=python-librosa
 _pkgname=librosa
-pkgver=0.8.1
+pkgver=0.9.1
 pkgrel=1
 pkgdesc="Python library for music and audio analysis"
 arch=('any')
 url="https://librosa.org"
 license=('ISC')
-depends=('python-numpy' 'python-scipy' 'python-six' 'python-numba' 'python-soundfile' 'python-joblib' 'python-matplotlib' 'python-audioread' 'python-decorator' 'python-pooch' 'python-scikit-learn' 'python-resampy')
+depends=('python-audioread' 'python-decorator' 'python-joblib'
+         'python-matplotlib' 'python-numba' 'python-numpy'
+         'python-packaging' 'python-pooch' 'python-resampy'
+         'python-scikit-learn' 'python-scipy' 'python-six'
+         'python-soundfile')
 makedepends=('python-setuptools')
 source=("https://github.com/librosa/librosa/archive/${pkgver}.tar.gz")
-md5sums=('1381e33b832b24ca255f2bc375fce934')
+sha256sums=('16b726ec4cda7a23d803c486dd4c99f3371d195a83fe2451c708f3ad05121035')

 build() {
   cd "$srcdir/${_pkgname}-${pkgver}"
@@ -21,8 +25,8 @@ build() {

 package() {
   cd "$srcdir/${_pkgname}-${pkgver}"
-  python setup.py install --root="$pkgdir"/ --optimize=1
-  install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  python setup.py install --root="$pkgdir"/ --skip-build --optimize=1
+  install -Dm644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }

 # vim:set ts=2 sw=2 et:

HenryJia commented on 2020-08-27 16:02 (UTC)

You're missing pooch as a dependency https://github.com/librosa/librosa/blob/main/setup.py#L48

linos commented on 2020-06-18 07:34 (UTC) (edited on 2020-06-18 17:46 (UTC) by linos)

Please patch it and pin the numba version to 0.48. Otherwise you will get the error:

ModuleNotFoundError: No module named 'numba.decorators'

https://github.com/librosa/librosa/issues/1160

--- src/librosa-0.7.2/setup.py  2020-01-13 16:18:58.000000000 +0100
+++ src/librosa-0.7.2/setup.py  2020-06-18 19:32:36.900645588 +0200
@@ -52,7 +52,7 @@
         'decorator >= 3.0.0',
         'six >= 1.3',
         'resampy >= 0.2.2',
-        'numba >= 0.43.0',
+        'numba == 0.48.0',
         'soundfile >= 0.9.0',
     ],
     extras_require={

CyberGhost commented on 2017-12-29 02:35 (UTC)

I believe python-decorator and python-scikit-learn are both depedencies for this module.