mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
38 lines
770 B
Nix
38 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cffi
|
|
, numpy
|
|
, portaudio
|
|
, substituteAll
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sounddevice";
|
|
version = "0.3.13";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "01x2hm3xxzhxrjcj21si4ggmvkwmy5hag7f6yabqlhwskws721cd";
|
|
};
|
|
|
|
propagatedBuildInputs = [ cffi numpy portaudio ];
|
|
|
|
# No tests included nor upstream available.
|
|
doCheck = false;
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-portaudio-library-path.patch;
|
|
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 ];
|
|
};
|
|
}
|