2017-07-29 11:22:07 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cffi
|
|
|
|
, numpy
|
|
|
|
, portaudio
|
2018-07-07 17:46:06 +01:00
|
|
|
, substituteAll
|
2017-07-29 11:22:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sounddevice";
|
2019-04-20 03:29:00 +01:00
|
|
|
version = "0.3.13";
|
2017-07-29 11:22:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-20 03:29:00 +01:00
|
|
|
sha256 = "01x2hm3xxzhxrjcj21si4ggmvkwmy5hag7f6yabqlhwskws721cd";
|
2017-07-29 11:22:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cffi numpy portaudio ];
|
|
|
|
|
|
|
|
# No tests included nor upstream available.
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-07-07 17:46:06 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-portaudio-library-path.patch;
|
|
|
|
portaudio = "${portaudio}/lib/libportaudio.so.2";
|
|
|
|
})
|
|
|
|
];
|
2017-07-29 11:22:07 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Play and Record Sound with Python";
|
|
|
|
homepage = http://python-sounddevice.rtfd.org/;
|
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2019-04-20 03:29:00 +01:00
|
|
|
}
|