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