1 { lib, stdenv, buildPythonPackage, fetchFromGitHub, scipy, ffmpeg-full }:
3 buildPythonPackage rec {
6 # pypi version doesn't include required data files for tests
7 src = fetchFromGitHub {
11 sha256 = "1pv4n54kkjpbjlvwh9b6a7zyq1ylg0fjmd2q4ws9nc2a6mrcivhc";
15 # disable a test that fails on aarch64 due to rounding errors
16 postPatch = lib.optionalString stdenv.isAarch64 ''
17 substituteInPlace test/test.py \
18 --replace "test_overlay_with_gain_change" "notest_overlay_with_gain_change"
21 checkInputs = [ scipy ffmpeg-full ];
28 description = "Manipulate audio with a simple and easy high level interface.";
29 homepage = "http://pydub.com/";
30 license = licenses.mit;
31 platforms = platforms.all;