1{ stdenv, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, netifaces, pytest }:
2
3buildPythonPackage rec {
4 pname = "netdisco";
5 version = "2.3.0";
6
7 disabled = !isPy3k;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "2571fc094f3bf8c60be211e90474515f565f3ef1c92e857176daab8577493a3b";
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}