git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pydub: fix build and tests

- remove obsolete patch that caused build failure - no tests were run because required data files were missing in pypi version; use github version instead

commit80ecef8e4beb007aa558f123f8ac66b69b4f0a90 authorUli Baum <xeji@cat3.de> dateMon 10 Sep 2018, 18:05 (8 years ago) parentd2a885a
1 file changed+11−8
pkgs/development/python-modules/pydub/default.nix+11−8
pkgs/development/python-modules/pydub/default.nix+11−8
@@ -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/";