2021-01-07 14:02:32 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, asyncio-dgram
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-06-06 09:05:49 +01:00
|
|
|
, poetry-core
|
2021-01-07 14:02:32 +00:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonAtLeast
|
|
|
|
, voluptuous
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioguardian";
|
2021-07-22 10:45:26 +01:00
|
|
|
version = "1.0.8";
|
2021-01-07 14:02:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-22 10:45:26 +01:00
|
|
|
sha256 = "0nqsacg0yrsqr6qax4486ffk8r88ra5yixxd6r88jwscm2bmjg3p";
|
2021-01-07 14:02:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
2021-06-06 09:05:49 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-01-07 14:02:32 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
asyncio-dgram
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asyncio-dgram
|
|
|
|
asynctest
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-06-06 09:05:49 +01:00
|
|
|
disabledTestPaths = [ "examples/" ];
|
|
|
|
|
2021-01-07 14:02:32 +00:00
|
|
|
pythonImportsCheck = [ "aioguardian" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = " Python library to interact with Elexa Guardian devices";
|
|
|
|
longDescription = ''
|
|
|
|
aioguardian is a Pytho3, asyncio-focused library for interacting with the
|
|
|
|
Guardian line of water valves and sensors from Elexa.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/bachya/aioguardian";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|