evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / netdisco / default.nix
blobdb1d17de07caf03b7bcc0acb412a96f98e8076a2
2   lib,
3   buildPythonPackage,
4   isPy3k,
5   fetchPypi,
6   requests,
7   zeroconf,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "netdisco";
13   version = "3.0.0";
14   format = "setuptools";
16   disabled = !isPy3k;
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-TbtZBILzd8zEYeAXQnB8y+jx0tGyhXivkdybf+vNy9I=";
21   };
23   propagatedBuildInputs = [
24     requests
25     zeroconf
26   ];
28   nativeCheckInputs = [ pytestCheckHook ];
30   disabledTestPaths = [
31     # Broken due to removed discoverables in https://github.com/home-assistant-libs/netdisco/commit/477db5a1dc93919a6c5bd61b4b1d3c80e75785bd
32     "tests/test_xboxone.py"
33   ];
35   pythonImportsCheck = [
36     "netdisco"
37     "netdisco.discovery"
38   ];
40   meta = with lib; {
41     description = "Python library to scan local network for services and devices";
42     homepage = "https://github.com/home-assistant/netdisco";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ dotlambda ];
45   };