1{ stdenv, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, netifaces, pytest }:
2
3buildPythonPackage rec {
4 pname = "netdisco";
5 version = "2.8.2";
6
7 disabled = !isPy3k;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "dcaabf83b204282aacfb213b18799eb7af2d5a6defe529487bbd0548036392fe";
12 };
13
14 propagatedBuildInputs = [ requests zeroconf netifaces ];
15
16 checkInputs = [ pytest ];
17
18 checkPhase = ''
19 py.test
20 '';
21
22 meta = with stdenv.lib; {
23 description = "Python library to scan local network for services and devices";
24 homepage = "https://github.com/home-assistant/netdisco";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ dotlambda ];
27 };
28}