2017-07-29 11:22:07 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-29 19:08:52 +01:00
|
|
|
, isPy27
|
2017-07-29 11:22:07 +01:00
|
|
|
, cffi
|
|
|
|
, numpy
|
|
|
|
, portaudio
|
2018-07-07 17:46:06 +01:00
|
|
|
, substituteAll
|
2017-07-29 11:22:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sounddevice";
|
2020-10-25 09:06:57 +00:00
|
|
|
version = "0.4.1";
|
2020-08-29 19:08:52 +01:00
|
|
|
disabled = isPy27;
|
2017-07-29 11:22:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:57 +00:00
|
|
|
sha256 = "f21978921186c0c7183af032fab77b735d824f3e926d76adb3fd0912e289ce0b";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://python-sounddevice.rtfd.org/";
|
2017-07-29 11:22:07 +01:00
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2019-04-20 03:29:00 +01:00
|
|
|
}
|