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
This commit is contained in:
parent
d2a885a3b5
commit
80ecef8e4b
@ -1,19 +1,22 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, scipy, ffmpeg-full }:
|
{ stdenv, buildPythonPackage, fetchFromGitHub, scipy, ffmpeg-full }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pydub";
|
pname = "pydub";
|
||||||
version = "0.22.1";
|
version = "0.22.1";
|
||||||
src = fetchPypi {
|
# pypi version doesn't include required data files for tests
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "20beff39e9959a3b2cb4392802aecb9b2417837fff635d2b00b5ef5f5326d313";
|
owner = "jiaaro";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0xqyvzgdfy01p98wnvsrf6iwdfq91ad377r6j12r8svm13ygx5bv";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
./pyaudioop-python3.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
checkInputs = [ scipy ffmpeg-full ];
|
checkInputs = [ scipy ffmpeg-full ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
python test/test.py
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Manipulate audio with a simple and easy high level interface.";
|
description = "Manipulate audio with a simple and easy high level interface.";
|
||||||
homepage = "http://pydub.com/";
|
homepage = "http://pydub.com/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user