blob: c4a6703a865bc819cfd4c25e3d0526b7db2be03d (
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,
aioresponses,
buildPythonPackage,
orjson,
fetchFromGitHub,
propcache,
pytest-asyncio,
pytestCheckHook,
aiohttp,
setuptools,
}:
buildPythonPackage rec {
pname = "nexia";
version = "2.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "nexia";
tag = version;
hash = "sha256-rGBfmFgSInp1+2FNFS0OZSyj53kMOK6MxWIra7VNYcM=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
orjson
propcache
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "nexia" ];
meta = {
description = "Python module for Nexia thermostats";
homepage = "https://github.com/bdraco/nexia";
changelog = "https://github.com/bdraco/nexia/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|