summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/moehlenhoff-alpha2/default.nix
blob: 5fca6510acb41b98747f2158473db9c893684854 (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
44
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  xmltodict,
  pytestCheckHook,
  pytest-asyncio,
}:

buildPythonPackage rec {
  pname = "moehlenhoff-alpha2";
  version = "1.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "j-a-n";
    repo = "python-moehlenhoff-alpha2";
    tag = version;
    hash = "sha256-bvT7kWFPIEQUgUxLGydd2e7SBA7vPV+YAzDqYLE7X+o=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    aiohttp
    xmltodict
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  pythonImportsCheck = [
    "moehlenhoff_alpha2"
  ];

  meta = {
    description = "Python client for the Moehlenhoff Alpha2 underfloor heating system";
    homepage = "https://github.com/j-a-n/python-moehlenhoff-alpha2";
    changelog = "https://github.com/j-a-n/python-moehlenhoff-alpha2/releases/tag/${version}";
    license = lib.licenses.gpl3Only;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}