2024-05-15 14:36:42 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pycryptodome,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-08-20 10:45:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioairq";
|
2024-11-21 07:17:12 +00:00
|
|
|
version = "0.4.3";
|
2024-05-15 14:36:24 +00:00
|
|
|
pyproject = true;
|
2022-08-20 10:45:47 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CorantGmbH";
|
2024-05-15 14:36:24 +00:00
|
|
|
repo = "aioairq";
|
2022-09-23 03:10:05 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-11-21 07:17:12 +00:00
|
|
|
hash = "sha256-Bgzwu/9Eu3Miw0eFb0b9jbD8yuPcBlJFnVyom+CsZBE=";
|
2022-08-20 10:45:47 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 14:36:42 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 14:36:24 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2022-08-20 10:45:47 +00:00
|
|
|
aiohttp
|
|
|
|
pycryptodome
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
2024-05-15 14:36:24 +00:00
|
|
|
#doCheck = false;
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-08-20 10:45:47 +00:00
|
|
|
|
2024-05-15 14:36:42 +00:00
|
|
|
pythonImportsCheck = [ "aioairq" ];
|
2022-08-20 10:45:47 +00:00
|
|
|
|
2024-05-15 14:36:24 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"tests/test_core_on_device.py"
|
|
|
|
];
|
|
|
|
|
2022-08-20 10:45:47 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to retrieve data from air-Q devices";
|
|
|
|
homepage = "https://github.com/CorantGmbH/aioairq";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|