summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/btsmarthub-devicelist/default.nix
blob: 9d4e290b4b78d6c48691aad529ed4ba4df709da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  requests,
  responses,
}:
buildPythonPackage rec {
  pname = "btsmarthub-devicelist";
  version = "0.2.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "jxwolstenholme";
    repo = "btsmarthub_devicelist";
    rev = version;
    hash = "sha256-7ncxCpY+A2SuSFa3k21QchrmFs1dPRUMb1r1z/laa6M=";
  };

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [
    responses
    requests
    pytestCheckHook
  ];

  disabledTests = [ "test_btsmarthub2_detection_neither_router_present" ];

  meta = {
    description = "Retrieve a list of devices from a bt smarthub or bt smarthub 2 on a local network";
    homepage = "https://github.com/jxwolstenholme/btsmarthub_devicelist";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ jamiemagee ];
  };
}