diff options
author | Uli Baum <xeji@cat3.de> | 2018-09-10 18:05:40 +0200 |
---|---|---|
committer | Uli Baum <xeji@cat3.de> | 2018-09-10 18:05:40 +0200 |
commit | 80ecef8e4beb007aa558f123f8ac66b69b4f0a90 (patch) | |
tree | 992830515dc3a4160c060a73e42ba9da7c9897c8 /pkgs/development/python-modules | |
parent | d2a885a3b5d387952f2343e42507ebc00b9cdbbc (diff) | |
download | nixlib-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar nixlib-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.gz nixlib-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.bz2 nixlib-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.lz nixlib-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.xz nixlib-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.zst nixlib-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.zip |
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
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/pydub/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
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/"; |