2021-09-29 07:41:51 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-07-06 20:05:28 +00:00
|
|
|
, orjson
|
2021-09-29 07:41:51 +00:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2019-02-28 06:03:19 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiounifi";
|
2023-01-02 02:09:38 +00:00
|
|
|
version = "43";
|
2023-01-02 08:59:15 +00:00
|
|
|
format = "setuptools";
|
2019-02-28 06:03:19 +00:00
|
|
|
|
2022-06-20 07:32:16 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2019-02-28 06:03:19 +00:00
|
|
|
|
2021-09-29 07:41:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kane610";
|
|
|
|
repo = pname;
|
2022-06-20 07:14:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-02 02:09:38 +00:00
|
|
|
hash = "sha256-qpFQdNlw6voqccoJwPsnmbU5DtAC6zwtouUeysZ8/0M=";
|
2019-02-28 06:03:19 +00:00
|
|
|
};
|
|
|
|
|
2021-09-29 07:41:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-07-06 20:05:28 +00:00
|
|
|
orjson
|
2021-09-29 07:41:51 +00:00
|
|
|
];
|
2019-02-28 06:03:19 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-29 07:41:51 +00:00
|
|
|
aioresponses
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-01-17 01:59:13 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"--asyncio-mode=auto"
|
|
|
|
];
|
|
|
|
|
2022-06-20 07:32:16 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiounifi"
|
|
|
|
];
|
2019-02-28 06:03:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-09-29 07:41:51 +00:00
|
|
|
description = "Python library for communicating with Unifi Controller API";
|
|
|
|
homepage = "https://github.com/Kane610/aiounifi";
|
2023-01-02 08:59:15 +00:00
|
|
|
changelog = "https://github.com/Kane610/aiounifi/releases/tag/v${version}";
|
2021-09-29 07:41:51 +00:00
|
|
|
license = licenses.mit;
|
2019-02-28 06:03:19 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|