about summary refs log tree commit diff
path: root/pkgs/applications/audio/pulseaudio-dlna/zeroconf.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/audio/pulseaudio-dlna/zeroconf.nix')
-rw-r--r--pkgs/applications/audio/pulseaudio-dlna/zeroconf.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/audio/pulseaudio-dlna/zeroconf.nix b/pkgs/applications/audio/pulseaudio-dlna/zeroconf.nix
new file mode 100644
index 0000000000000..9532c467d2bbc
--- /dev/null
+++ b/pkgs/applications/audio/pulseaudio-dlna/zeroconf.nix
@@ -0,0 +1,31 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, ifaddr
+, typing
+, isPy27
+, pythonOlder
+, netifaces
+, six
+, enum-compat
+}:
+
+buildPythonPackage rec {
+  pname = "zeroconf";
+  version = "0.19.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0ykzg730n915qbrq9bn5pn06bv6rb5zawal4sqjyfnjjm66snkj3";
+  };
+
+  propagatedBuildInputs = [ netifaces six enum-compat ifaddr ]
+    ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
+
+  meta = with stdenv.lib; {
+    description = "A pure python implementation of multicast DNS service discovery";
+    homepage = https://github.com/jstasiak/python-zeroconf;
+    license = licenses.lgpl21;
+    maintainers = [ ];
+  };
+}