python.pkgs.sounddevice: 0.3.6 -> 0.3.8

This commit is contained in:
Frederik Rietdijk
2017-07-29 12:22:07 +02:00
parent 5ecc470b8c
commit 08f9183d75
2 changed files with 35 additions and 25 deletions

View File

@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, cffi
, numpy
, portaudio
}:
buildPythonPackage rec {
pname = "sounddevice";
name = "${pname}-${version}";
version = "0.3.8";
src = fetchPypi {
inherit pname version;
sha256 = "dc5ec8534c3831ab133c497721f3aaeed4f5084b0eda842f0c0ada09f2f066dc";
};
propagatedBuildInputs = [ cffi numpy portaudio ];
# No tests included nor upstream available.
doCheck = false;
prePatch = ''
substituteInPlace sounddevice.py --replace "'portaudio'" "'${portaudio}/lib/libportaudio.so.2'"
'';
meta = {
description = "Play and Record Sound with Python";
homepage = http://python-sounddevice.rtfd.org/;
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fridh ];
};
}