2021-05-07 12:10:49 +02:00
|
|
|
{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, pytestCheckHook }:
|
2018-01-13 21:53:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "netdisco";
|
2021-10-07 00:58:08 +02:00
|
|
|
version = "3.0.0";
|
2018-01-13 21:53:41 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-10-29 13:44:00 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-07 00:58:08 +02:00
|
|
|
sha256 = "sha256-TbtZBILzd8zEYeAXQnB8y+jx0tGyhXivkdybf+vNy9I=";
|
2018-02-27 17:40:42 +01:00
|
|
|
};
|
|
|
|
|
2021-05-07 12:10:49 +02:00
|
|
|
propagatedBuildInputs = [ requests zeroconf ];
|
2018-01-13 21:53:41 +01:00
|
|
|
|
2021-05-07 12:10:49 +02:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-01-13 21:53:41 +01:00
|
|
|
|
2021-10-07 00:58:08 +02:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Broken due to removed discoverables in https://github.com/home-assistant-libs/netdisco/commit/477db5a1dc93919a6c5bd61b4b1d3c80e75785bd
|
|
|
|
"tests/test_xboxone.py"
|
|
|
|
];
|
|
|
|
|
2021-05-07 12:10:49 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"netdisco"
|
|
|
|
"netdisco.discovery"
|
|
|
|
];
|
2018-01-13 21:53:41 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-01-13 21:53:41 +01:00
|
|
|
description = "Python library to scan local network for services and devices";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/home-assistant/netdisco";
|
2018-01-13 21:53:41 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|