From 80ecef8e4beb007aa558f123f8ac66b69b4f0a90 Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Mon, 10 Sep 2018 18:05:40 +0200 Subject: 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 --- pkgs/development/python-modules/pydub/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/python-modules/pydub/default.nix b/pkgs/development/python-modules/pydub/default.nix index 28a76da4bd96..e9ce74263c2c 100644 --- a/pkgs/development/python-modules/pydub/default.nix +++ b/pkgs/development/python-modules/pydub/default.nix @@ -1,19 +1,22 @@ -{ stdenv, buildPythonPackage, fetchPypi, scipy, ffmpeg-full }: +{ stdenv, buildPythonPackage, fetchFromGitHub, scipy, ffmpeg-full }: buildPythonPackage rec { pname = "pydub"; version = "0.22.1"; - src = fetchPypi { - inherit pname version; - sha256 = "20beff39e9959a3b2cb4392802aecb9b2417837fff635d2b00b5ef5f5326d313"; + # pypi version doesn't include required data files for tests + src = fetchFromGitHub { + owner = "jiaaro"; + repo = pname; + rev = "v${version}"; + sha256 = "0xqyvzgdfy01p98wnvsrf6iwdfq91ad377r6j12r8svm13ygx5bv"; }; - patches = [ - ./pyaudioop-python3.patch - ]; - 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/"; -- cgit 1.4.1