5557ff764c
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, async-timeout
|
|
, asyncio-dgram
|
|
, buildPythonPackage
|
|
, docutils
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioguardian";
|
|
version = "2022.10.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bachya";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
asyncio-dgram
|
|
docutils
|
|
voluptuous
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
asyncio-dgram
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"examples/"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aioguardian"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = " Python library to interact with Elexa Guardian devices";
|
|
longDescription = ''
|
|
aioguardian is an asyncio-focused library for interacting with the
|
|
Guardian line of water valves and sensors from Elexa.
|
|
'';
|
|
homepage = "https://github.com/bachya/aioguardian";
|
|
changelog = "https://github.com/bachya/aioguardian/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|