summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/eurotronic-cometblue-ha/default.nix
blob: ad6b99a36788dabbbe4c86f3e0b8bfe27699c13c (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pdm-backend,
  bleak,
  bleak-retry-connector,
}:

buildPythonPackage (finalAttrs: {
  pname = "eurotronic-cometblue-ha";
  version = "1.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rikroe";
    repo = "eurotronic-cometblue";
    tag = "v${finalAttrs.version}";
    hash = "sha256-j3UuN0Cmb2mOo3QGqy0wu19+vRyMahclXKyka2Vy10w=";
  };

  build-system = [ pdm-backend ];

  dependencies = [
    bleak
    bleak-retry-connector
  ];

  # Tests require a real Bluetooth Comet Blue device.
  doCheck = false;

  pythonImportsCheck = [ "eurotronic_cometblue_ha" ];

  meta = {
    description = "Python client for Eurotronic GmbH BLE Comet (and rebranded) Radiator TRVs";
    homepage = "https://github.com/rikroe/eurotronic-cometblue";
    changelog = "https://github.com/rikroe/eurotronic-cometblue/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})