2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
31 lines
955 B
Nix
31 lines
955 B
Nix
{ lib, buildPythonPackage, fetchPypi, libpulseaudio, glibc, substituteAll, stdenv, pulseaudio, python }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pulsectl";
|
|
version = "20.5.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "39b0a0e7974a7d6468d826a838822f78b00ac9c3803f0d7bfa9b1cad08ee22db";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./library-paths.patch;
|
|
libpulse = "${libpulseaudio.out}/lib/libpulse${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
librt = "${glibc.out}/lib/librt${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
})
|
|
];
|
|
|
|
checkInputs = [ pulseaudio ];
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest pulsectl.tests.all
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)";
|
|
homepage = "https://pypi.python.org/pypi/pulsectl/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|