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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
lib,
aiohttp,
aioresponses,
aqipy-atmotech,
buildPythonPackage,
dacite,
fetchFromGitHub,
pytest-asyncio,
pytest-error-for-skips,
pytestCheckHook,
pythonOlder,
setuptools,
syrupy,
tenacity,
}:
buildPythonPackage rec {
pname = "nettigo-air-monitor";
version = "3.1.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bieniu";
repo = "nettigo-air-monitor";
rev = "refs/tags/${version}";
hash = "sha256-9LrzCUstzMTzt2qHzDsllyep5Rtt6vrrvVPRFILUtwA=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
aqipy-atmotech
dacite
tenacity
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-error-for-skips
pytestCheckHook
syrupy
];
disabledTests = [
# stuck in epoll
"test_retry_fail"
"test_retry_success"
];
pythonImportsCheck = [ "nettigo_air_monitor" ];
meta = with lib; {
description = "Python module to get air quality data from Nettigo Air Monitor devices";
homepage = "https://github.com/bieniu/nettigo-air-monitor";
changelog = "https://github.com/bieniu/nettigo-air-monitor/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
|