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

37 lines
781 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, cffi
, numpy
, portaudio
, substituteAll
}:
buildPythonPackage rec {
pname = "sounddevice";
2018-10-06 11:56:20 +01:00
version = "0.3.12";
src = fetchPypi {
inherit pname version;
2018-10-06 11:56:20 +01:00
sha256 = "f59ae4e2ec12cb1e5940f06f08804ecca855d959de25ca45a3938de45d0f81a2";
};
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 ];
};
}