{ stdenv, fetchFromGitLab, lib, python3Packages, mutagen, fold-to-ascii, pyyaml, ffmpeg, r128gain }: python3Packages.buildPythonApplication rec { pname = "musicutil"; version = "latest"; rev = "9880c175a679bf4450745dc91fb18fb88e0a4fd6"; src = fetchFromGitLab { owner = "ChaotiCryptidz"; repo = "musicutil"; inherit rev; sha256 = "sha256-pvDxVeCNZy3TKfbFds4QSQPR2lYZR+RZrwBHI+Pfj+w="; #sha256 = lib.fakeSha256; }; postPatch = '' substituteInPlace musicutil/meta.py --replace 'ffmpeg_path = "ffmpeg"' 'ffmpeg_path = "${ffmpeg}/bin/ffmpeg"' substituteInPlace musicutil/meta.py --replace 'ffprobe_path = "ffprobe"' 'ffprobe_path = "${ffmpeg}/bin/ffprobe"' substituteInPlace musicutil/meta.py --replace 'r128gain_path = "r128gain"' 'r128gain_path = "${r128gain}/bin/r128gain"' ''; doCheck = false; propagatedBuildInputs = [ mutagen fold-to-ascii pyyaml ]; }