@@ -1,19 +1,22 @@
1−{ stdenv, buildPythonPackage, fetchPypi, scipy, ffmpeg-full }:
1+{ stdenv, buildPythonPackage, fetchFromGitHub, scipy, ffmpeg-full }:
22
33buildPythonPackage rec {
44 pname = "pydub";
55 version = "0.22.1";
6− src = fetchPypi {
7− inherit pname version;
8− sha256 = "20beff39e9959a3b2cb4392802aecb9b2417837fff635d2b00b5ef5f5326d313";
6+ # pypi version doesn't include required data files for tests
7+ src = fetchFromGitHub {
8+ owner = "jiaaro";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0xqyvzgdfy01p98wnvsrf6iwdfq91ad377r6j12r8svm13ygx5bv";
912 };
1013
11− patches = [
12− ./pyaudioop-python3.patch
13− ];
14−
1514 checkInputs = [ scipy ffmpeg-full ];
1615
16+ checkPhase = ''
17+ python test/test.py
18+ '';
19+
1720 meta = with stdenv.lib; {
1821 description = "Manipulate audio with a simple and easy high level interface.";
1922 homepage = "http://pydub.com/";