3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/pulseaudio-dlna/default.nix

76 lines
1.7 KiB
Nix
Raw Normal View History

{ fetchFromGitHub
, lib
, python3Packages
, mp3Support ? true
2021-11-26 12:22:20 +00:00
, lame
, opusSupport ? true
2021-11-26 12:22:20 +00:00
, opusTools
, faacSupport ? false
2021-11-26 12:22:20 +00:00
, faac
, flacSupport ? true
2021-11-26 12:22:20 +00:00
, flac
, soxSupport ? true
2021-11-26 12:22:20 +00:00
, sox
, vorbisSupport ? true
2021-11-26 12:22:20 +00:00
, vorbis-tools
, pulseaudio
2018-02-21 09:16:47 +00:00
}:
python3Packages.buildPythonApplication {
2018-02-21 09:16:47 +00:00
pname = "pulseaudio-dlna";
version = "unstable-2021-11-09";
2018-02-21 09:16:47 +00:00
src = fetchFromGitHub {
owner = "Cygn";
2018-02-21 09:16:47 +00:00
repo = "pulseaudio-dlna";
rev = "637a2e7bba2277137c5f12fb58e63100dab7cbe6";
sha256 = "sha256-Oda+zQQJE2D3fiNWTzxYvI8cZVHG5JAoV2Wf5Z6IU3M=";
2018-02-21 09:16:47 +00:00
};
patches = [
./0001-setup.py-remove-dbus-python-from-list.patch
];
propagatedBuildInputs = with python3Packages; [
dbus-python
docopt
requests
setproctitle
protobuf
psutil
chardet
netifaces
notify2
pyroute2
pygobject3
PyChromecast
lxml
setuptools
zeroconf
]
++ lib.optional mp3Support lame
++ lib.optional opusSupport opusTools
++ lib.optional faacSupport faac
++ lib.optional flacSupport flac
++ lib.optional soxSupport sox
++ lib.optional vorbisSupport vorbis-tools;
2018-02-21 09:16:47 +00:00
# pulseaudio-dlna shells out to pactl to configure sinks and sources.
# As pactl might not be in $PATH, add --suffix it (so pactl configured by the
# user get priority)
makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ pulseaudio ]}" ];
# upstream has no tests
checkPhase = ''
$out/bin/pulseaudio-dlna --help > /dev/null
'';
meta = with lib; {
2018-02-21 09:16:47 +00:00
description = "A lightweight streaming server which brings DLNA / UPNP and Chromecast support to PulseAudio and Linux";
homepage = "https://github.com/Cygn/pulseaudio-dlna";
2018-02-21 09:16:47 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ mog ];
platforms = platforms.linux;
};
}