2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2019-06-12 16:20:09 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ifaddr
|
|
|
|
, typing
|
|
|
|
, 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 ]
|
2021-01-15 14:21:58 +01:00
|
|
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
2019-06-12 16:20:09 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-06-12 16:20:09 +02:00
|
|
|
description = "A pure python implementation of multicast DNS service discovery";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jstasiak/python-zeroconf";
|
2019-06-12 16:20:09 +02:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|