From e45bd511f732d96ba76abc4dfa2af17f9a212bcd Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 13 Jan 2016 11:41:07 +0100 Subject: [PATCH] pythonPackages.pyaudio: 0.2.4 -> 0.2.9 Update python-pyaudio to the latest version. buildPythonPackage is now used instead of mkDerivation. pyaudio does not have an automated test suite but there are some examples. --- pkgs/top-level/python-packages.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 474ea6a8a05f..a1da200c3069 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14601,24 +14601,18 @@ in modules // { }; }; - pyaudio = pkgs.stdenv.mkDerivation rec { + pyaudio = buildPythonPackage rec { name = "python-pyaudio-${version}"; - version = "0.2.4"; + version = "0.2.9"; src = pkgs.fetchurl { - url = "http://people.csail.mit.edu/hubert/pyaudio/packages/pyaudio-${version}.tar.gz"; - md5 = "623809778f3d70254a25492bae63b575"; + url = "https://pypi.python.org/packages/source/P/PyAudio/PyAudio-${version}.tar.gz"; + sha256 = "bfd694272b3d1efc51726d0c27650b3c3ba1345f7f8fdada7e86c9751ce0f2a1"; }; - buildInputs = with self; [ python pkgs.portaudio ]; + disabled = isPyPy; - buildPhase = if stdenv.isDarwin then '' - 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"; + buildInputs = with self; [ pkgs.portaudio ]; meta = { description = "Python bindings for PortAudio";