git.iko.soy/typeable/nixpkgs
on master help sign in
pulseaudio-dlna: Fix build by downgrading zeroconf
commitacbfb0035207da71ed0f8952c56ee32a694edf5b authoradisbladis <adisbladis@gmail.com> dateWed 12 Jun 2019, 15:20 (7 years ago) parente37d6ef
2 files changed+39−4
pkgs/applications/audio/pulseaudio-dlna/default.nix+8−4 pkgs/applications/audio/pulseaudio-dlna/zeroconf.nix+31
pkgs/applications/audio/pulseaudio-dlna/default.nix+8−4
@@ -4,7 +4,7 @@
44, faacSupport ? false, faac ? null
55, flacSupport ? true, flac ? null
66, soxSupport ? true, sox ? null
7−, vorbisSupport ? true, vorbisTools ? null
7+, vorbisSupport ? true, vorbisTools ? null
88}:
99
1010assert mp3Support -> lame != null;
@@ -14,7 +14,10 @@ assert flacSupport -> flac != null;
1414assert soxSupport -> sox != null;
1515assert vorbisSupport -> vorbisTools != null;
1616
17−pythonPackages.buildPythonApplication rec {
17+let
18+ zeroconf = pythonPackages.callPackage ./zeroconf.nix { };
19+
20+in pythonPackages.buildPythonApplication rec {
1821 pname = "pulseaudio-dlna";
1922 version = "2017-11-01";
2023
@@ -24,13 +27,14 @@ pythonPackages.buildPythonApplication rec {
2427 rev = "4472928dd23f274193f14289f59daec411023ab0";
2528 sha256 = "1dfn7036vrq49kxv4an7rayypnm5dlawsf02pfsldw877hzdamqk";
2629 };
27−
30+
2831 # pulseaudio-dlna has no tests
2932 doCheck = false;
3033
3134 propagatedBuildInputs = with pythonPackages; [
3235 dbus-python docopt requests setproctitle protobuf psutil futures
33− chardet notify2 netifaces pyroute2 pygobject2 lxml zeroconf ]
36+ chardet notify2 netifaces pyroute2 pygobject2 lxml ]
37+ ++ [ zeroconf ]
3438 ++ stdenv.lib.optional mp3Support lame
3539 ++ stdenv.lib.optional opusSupport opusTools
3640 ++ stdenv.lib.optional faacSupport faac
pkgs/applications/audio/pulseaudio-dlna/zeroconf.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, ifaddr
5+, typing
6+, isPy27
7+, pythonOlder
8+, netifaces
9+, six
10+, enum-compat
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "zeroconf";
15+ version = "0.19.1";
16+
17+ src = fetchPypi {
18+ inherit pname version;
19+ sha256 = "0ykzg730n915qbrq9bn5pn06bv6rb5zawal4sqjyfnjjm66snkj3";
20+ };
21+
22+ propagatedBuildInputs = [ netifaces six enum-compat ifaddr ]
23+ ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
24+
25+ meta = with stdenv.lib; {
26+ description = "A pure python implementation of multicast DNS service discovery";
27+ homepage = https://github.com/jstasiak/python-zeroconf;
28+ license = licenses.lgpl21;
29+ maintainers = [ ];
30+ };
31+}