2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
asyncio-dgram,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
docutils,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
voluptuous,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioguardian";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.0";
|
|
|
|
pyproject = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "aioguardian";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-7fY8+aAxlDtOBLu8SadY5qiH6+RvxnFpOw1RXTonP2o=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
asyncio-dgram
|
2024-01-13 08:15:51 +00:00
|
|
|
certifi
|
2021-12-06 16:07:01 +00:00
|
|
|
docutils
|
2021-01-15 22:18:51 +00:00
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
asyncio-dgram
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "examples/" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aioguardian" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = " Python library to interact with Elexa Guardian devices";
|
|
|
|
longDescription = ''
|
2023-02-22 10:55:15 +00:00
|
|
|
aioguardian is an asyncio-focused library for interacting with the
|
2021-01-15 22:18:51 +00:00
|
|
|
Guardian line of water valves and sensors from Elexa.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/bachya/aioguardian";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/bachya/aioguardian/releases/tag/${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|