1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 requests,
8 responses,
9}:
10buildPythonPackage rec {
11 pname = "btsmarthub-devicelist";
12 version = "0.2.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "jxwolstenholme";
19 repo = "btsmarthub_devicelist";
20 rev = version;
21 hash = "sha256-7ncxCpY+A2SuSFa3k21QchrmFs1dPRUMb1r1z/laa6M=";
22 };
23
24 propagatedBuildInputs = [ requests ];
25
26 nativeCheckInputs = [
27 responses
28 requests
29 pytestCheckHook
30 ];
31
32 disabledTests = [ "test_btsmarthub2_detection_neither_router_present" ];
33
34 meta = with lib; {
35 description = "Retrieve a list of devices from a bt smarthub or bt smarthub 2 on a local network";
36 homepage = "https://github.com/jxwolstenholme/btsmarthub_devicelist";
37 license = licenses.mit;
38 maintainers = with maintainers; [ jamiemagee ];
39 };
40}