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 = [
25 requests
26 ];
27
28 nativeCheckInputs = [
29 responses
30 requests
31 pytestCheckHook
32 ];
33
34 disabledTests = [
35 "test_btsmarthub2_detection_neither_router_present"
36 ];
37
38 meta = with lib; {
39 description = "Retrieve a list of devices from a bt smarthub or bt smarthub 2 on a local network";
40 homepage = "https://github.com/jxwolstenholme/btsmarthub_devicelist";
41 license = licenses.mit;
42 maintainers = with maintainers; [jamiemagee];
43 };
44}