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