1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiohttp,
7 xmltodict,
8 pytestCheckHook,
9 pytest-asyncio,
10}:
11
12buildPythonPackage rec {
13 pname = "moehlenhoff-alpha2";
14 version = "1.4.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "j-a-n";
19 repo = "python-moehlenhoff-alpha2";
20 tag = version;
21 hash = "sha256-bvT7kWFPIEQUgUxLGydd2e7SBA7vPV+YAzDqYLE7X+o=";
22 };
23
24 build-system = [
25 setuptools
26 ];
27
28 dependencies = [
29 aiohttp
30 xmltodict
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pytest-asyncio
36 ];
37
38 pythonImportsCheck = [
39 "moehlenhoff_alpha2"
40 ];
41
42 meta = {
43 description = "Python client for the Moehlenhoff Alpha2 underfloor heating system";
44 homepage = "https://github.com/j-a-n/python-moehlenhoff-alpha2";
45 changelog = "https://github.com/j-a-n/python-moehlenhoff-alpha2/releases/tag/${version}";
46 license = lib.licenses.gpl3Only;
47 maintainers = [ lib.maintainers.jamiemagee ];
48 };
49}