summary refs log tree commit diff
path: root/pkgs/development/python-modules/pydub/default.nix
diff options
context:
space:
mode:
authorUli Baum <xeji@cat3.de>2018-09-10 18:05:40 +0200
committerUli Baum <xeji@cat3.de>2018-09-10 18:05:40 +0200
commit80ecef8e4beb007aa558f123f8ac66b69b4f0a90 (patch)
tree992830515dc3a4160c060a73e42ba9da7c9897c8 /pkgs/development/python-modules/pydub/default.nix
parentd2a885a3b5d387952f2343e42507ebc00b9cdbbc (diff)
downloadnixpkgs-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar
nixpkgs-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.gz
nixpkgs-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.bz2
nixpkgs-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.lz
nixpkgs-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.xz
nixpkgs-80ecef8e4beb007aa558f123f8ac66b69b4f0a90.tar.zst
nixpkgs-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/pydub/default.nix')
-rw-r--r--pkgs/development/python-modules/pydub/default.nix19
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 28a76da4bd9..e9ce74263c2 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/";