stripe-cli: 1.23.3 -> 1.23.5 (#375724)
[NixPkgs.git] / pkgs / development / python-modules / soundcard / default.nix
blob6fd42cd2ec91e019429422de29b414ccd52d7320
2   buildPythonPackage,
3   cffi,
4   fetchPypi,
5   lib,
6   libpulseaudio,
7   numpy,
8   setuptools,
9   testers,
11 let
12   version = "0.4.3";
14 buildPythonPackage {
15   inherit version;
16   pname = "soundcard";
17   pyproject = true;
19   src = fetchPypi {
20     inherit version;
21     pname = "SoundCard";
22     hash = "sha256-QQg1UUuhCAmAPLmIfUJw85K1nq82WRW7lFFq8/ix0Dc=";
23   };
25   patchPhase = ''
26     substituteInPlace soundcard/pulseaudio.py \
27       --replace "'pulse'" "'${libpulseaudio}/lib/libpulse.so'"
28   '';
30   build-system = [ setuptools ];
32   dependencies = [
33     cffi
34     numpy
35   ];
37   # doesn't work because there are not many soundcards in the
38   # sandbox. See VM-test
39   # pythonImportsCheck = [ "soundcard" ];
41   passthru.tests.vm-with-soundcard = testers.runNixOSTest ./test.nix;
43   meta = {
44     description = "Pure-Python Real-Time Audio Library";
45     homepage = "https://github.com/bastibe/SoundCard";
46     changelog = "https://github.com/bastibe/SoundCard/blob/${version}/README.rst#changelog";
47     license = lib.licenses.bsd3;
48     maintainers = with lib.maintainers; [ matthiasdotsh ];
49   };