summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyswitchbee/default.nix
blob: be9d4664db2c4e240194a597792cef85e5650ffc (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
38
39
40
41
42
43
{
  lib,
  awesomeversion,
  buildPythonPackage,
  aiohttp,
  fetchFromGitHub,
  setuptools,
  packaging,
}:

buildPythonPackage rec {
  pname = "pyswitchbee";
  version = "1.8.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jafar-atili";
    repo = "pySwitchbee";
    tag = version;
    hash = "sha256-at/HCY6htUz1ej09XPrb2QEyoiOWhIEpgSwJange1cU=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    aiohttp
    awesomeversion
    packaging
  ];

  # Module doesn't have tests
  doCheck = false;

  pythonImportsCheck = [ "switchbee" ];

  meta = {
    description = "Library to control SwitchBee smart home device";
    homepage = "https://github.com/jafar-atili/pySwitchbee/";
    changelog = "https://github.com/jafar-atili/pySwitchbee/releases/tag/${version}";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}