3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pydub/default.nix
R. RyanTM 40dd693ba9 python37Packages.pydub: 0.23.0 -> 0.23.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-pydub/versions
2019-01-27 07:53:57 -08:00

34 lines
927 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, scipy, ffmpeg-full }:
buildPythonPackage rec {
pname = "pydub";
version = "0.23.1";
# pypi version doesn't include required data files for tests
src = fetchFromGitHub {
owner = "jiaaro";
repo = pname;
rev = "v${version}";
sha256 = "1v0bghy4j2nnkgf1r8rbz4s7war872asyy08pc0x1iy1qs275i7s";
};
# disable a test that fails on aarch64 due to rounding errors
postPatch = stdenv.lib.optionalString stdenv.isAarch64 ''
substituteInPlace test/test.py \
--replace "test_overlay_with_gain_change" "notest_overlay_with_gain_change"
'';
checkInputs = [ scipy ffmpeg-full ];
checkPhase = ''
python test/test.py
'';
meta = with stdenv.lib; {
description = "Manipulate audio with a simple and easy high level interface.";
homepage = "http://pydub.com/";
license = licenses.mit;
platforms = platforms.all;
};
}