1 { lib, stdenv, fetchurl, alsa-lib, fftw, libjack2, libsamplerate
2 , libsndfile, pkg-config, python3, wafHook
5 stdenv.mkDerivation rec {
10 url = "https://aubio.org/pub/aubio-${version}.tar.bz2";
11 sha256 = "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl";
14 nativeBuildInputs = [ pkg-config python3 wafHook ];
15 buildInputs = [ alsa-lib fftw libjack2 libsamplerate libsndfile ];
18 dontAddWafCrossFlags = true;
19 wafFlags = lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--disable-tests";
22 # U was removed in python 3.11 because it had no effect
23 substituteInPlace waflib/*.py \
24 --replace "m='rU" "m='r" \
25 --replace "'rU'" "'r'"
29 description = "Library for audio labelling";
30 homepage = "https://aubio.org/";
31 license = licenses.gpl2;
32 maintainers = with maintainers; [ goibhniu marcweber fpletz ];
33 platforms = platforms.linux;