aubio: fix python311 build

This commit is contained in:
Artturin 2023-10-06 02:28:32 +03:00
parent f47e5cbf23
commit 6f54a1fd5c

View file

@ -18,6 +18,13 @@ stdenv.mkDerivation rec {
dontAddWafCrossFlags = true;
wafFlags = lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--disable-tests";
postPatch = ''
# U was removed in python 3.11 because it had no effect
substituteInPlace waflib/*.py \
--replace "m='rU" "m='r" \
--replace "'rU'" "'r'"
'';
meta = with lib; {
description = "Library for audio labelling";
homepage = "https://aubio.org/";