@@ -1,17 +1,14 @@
1−{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, requests, zeroconf, netifaces, pytest }:
1+{ stdenv, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, netifaces, pytest }:
22
33buildPythonPackage rec {
44 pname = "netdisco";
5− version = "2.0.0";
5+ version = "2.2.0";
66
77 disabled = !isPy3k;
88
9− # PyPI is missing tests/ directory
10− src = fetchFromGitHub {
11− owner = "home-assistant";
12− repo = pname;
13− rev = version;
14− sha256 = "08x5ab7v6a20753y9br7pvfm6a054ywn7y7gh6fydqski0gad6l7";
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "b5e810721a266660f7f90fc43f12c4635ec95c3db87d9e30ca408bb922cb1007";
1512 };
1613
1714 propagatedBuildInputs = [ requests zeroconf netifaces ];
@@ -26,7 +23,6 @@ buildPythonPackage rec {
2623 description = "Python library to scan local network for services and devices";
2724 homepage = https://github.com/home-assistant/netdisco;
2825 license = licenses.asl20;
29− platforms = platforms.unix;
3026 maintainers = with maintainers; [ dotlambda ];
3127 };
3228}