1 { lib, buildPythonPackage, fetchPypi, libpulseaudio, glibc, substituteAll, stdenv, pulseaudio, unittestCheckHook }:
3 buildPythonPackage rec {
9 hash = "sha256-6RHTmOrwU5zzxjtCFzV7UaPRt+SlBgfRWRzytJ9dLGo=";
13 # substitute library paths for libpulse and librt
15 src = ./library-paths.patch;
16 libpulse = "${libpulseaudio.out}/lib/libpulse${stdenv.hostPlatform.extensions.sharedLibrary}";
17 librt = "${glibc.out}/lib/librt${stdenv.hostPlatform.extensions.sharedLibrary}";
21 pythonImportsCheck = [
25 nativeCheckInputs = [ unittestCheckHook pulseaudio ];
32 description = "Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)";
33 homepage = "https://github.com/mk-fg/python-pulse-control";
34 license = licenses.mit;
35 maintainers = with maintainers; [ hexa ];