1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pycryptodome,
7 pytest-asyncio,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "aioairq";
15 version = "0.4.6";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "CorantGmbH";
22 repo = "aioairq";
23 tag = "v${version}";
24 hash = "sha256-XlOVCDWbcdh8VjNxlEcVNttRN3mw19AXlIIQJ1II144=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 aiohttp
31 pycryptodome
32 ];
33
34 # Module has no tests
35 #doCheck = false;
36
37 nativeCheckInputs = [
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [ "aioairq" ];
43
44 disabledTestPaths = [
45 # Tests require network access
46 "tests/test_core_on_device.py"
47 ];
48
49 meta = with lib; {
50 description = "Library to retrieve data from air-Q devices";
51 homepage = "https://github.com/CorantGmbH/aioairq";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ fab ];
54 };
55}