nixpkgs-suyu/pkgs/development/python-modules/sounddevice/default.nix

38 lines
782 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, cffi
, numpy
, portaudio
, substituteAll
}:
buildPythonPackage rec {
pname = "sounddevice";
2019-10-16 11:43:15 +02:00
version = "0.3.14";
src = fetchPypi {
inherit pname version;
2019-10-16 11:43:15 +02:00
sha256 = "c7b0f7ad86550668da55404eabcb63d4212ec622fcce86510092306b77d2e80a";
};
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 ];
};
}