Merge pull request #12355 from FRidh/pyaudio

pythonPackages.pyaudio: 0.2.4 -> 0.2.9
This commit is contained in:
Frederik Rietdijk 2016-01-16 15:39:07 +01:00
commit b8a59b10c1

View File

@ -14701,24 +14701,18 @@ in modules // {
}; };
}; };
pyaudio = pkgs.stdenv.mkDerivation rec { pyaudio = buildPythonPackage rec {
name = "python-pyaudio-${version}"; name = "python-pyaudio-${version}";
version = "0.2.4"; version = "0.2.9";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-${version}.tar.gz"; url = "https://pypi.python.org/packages/source/P/PyAudio/PyAudio-${version}.tar.gz";
md5 = "623809778f3d70254a25492bae63b575"; sha256 = "bfd694272b3d1efc51726d0c27650b3c3ba1345f7f8fdada7e86c9751ce0f2a1";
}; };
buildInputs = with self; [ python pkgs.portaudio ]; disabled = isPyPy;
buildPhase = if stdenv.isDarwin then '' buildInputs = with self; [ pkgs.portaudio ];
PORTAUDIO_PATH="${pkgs.portaudio}" ${python}/bin/${python.executable} setup.py build --static-link
'' else ''
${python}/bin/${python.executable} setup.py build
'';
installPhase = "${python}/bin/${python.executable} setup.py install --prefix=$out";
meta = { meta = {
description = "Python bindings for PortAudio"; description = "Python bindings for PortAudio";