2018-09-10 17:05:40 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, scipy, ffmpeg-full }:
|
2017-09-14 07:40:37 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydub";
|
2018-06-21 06:37:18 +01:00
|
|
|
version = "0.22.1";
|
2018-09-10 17:05:40 +01:00
|
|
|
# pypi version doesn't include required data files for tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jiaaro";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xqyvzgdfy01p98wnvsrf6iwdfq91ad377r6j12r8svm13ygx5bv";
|
2017-09-14 07:40:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ scipy ffmpeg-full ];
|
|
|
|
|
2018-09-10 17:05:40 +01:00
|
|
|
checkPhase = ''
|
|
|
|
python test/test.py
|
|
|
|
'';
|
|
|
|
|
2017-09-14 07:40:37 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|