2021-05-07 17:19:05 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-12-24 00:12:26 +00:00
|
|
|
, asyncio-throttle
|
2022-03-23 21:00:29 +00:00
|
|
|
, awesomeversion
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-02-16 08:13:17 +00:00
|
|
|
, pythonOlder
|
2021-05-07 17:19:05 +00:00
|
|
|
}:
|
2018-05-07 10:33:38 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohue";
|
2023-02-28 19:45:49 +00:00
|
|
|
version = "4.6.2";
|
2022-02-16 08:13:17 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2018-05-07 10:33:38 +00:00
|
|
|
|
2022-03-23 21:00:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
|
|
|
repo = pname;
|
2023-01-24 08:11:33 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-28 19:45:49 +00:00
|
|
|
hash = "sha256-DzslGfKwsXXWWhbTb0apJCsnNdnUe7AbvrRT8ZnPbVU=";
|
2018-05-07 10:33:38 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 17:19:05 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-03-23 21:00:29 +00:00
|
|
|
awesomeversion
|
2021-05-07 17:19:05 +00:00
|
|
|
aiohttp
|
2021-12-24 00:12:26 +00:00
|
|
|
asyncio-throttle
|
2021-05-07 17:19:05 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-23 21:00:29 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-05-07 17:19:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiohue"
|
|
|
|
"aiohue.discovery"
|
|
|
|
];
|
|
|
|
|
2022-03-23 21:00:29 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# File are prefixed with test_
|
|
|
|
"examples/"
|
|
|
|
];
|
2018-05-07 10:33:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-05-11 18:45:56 +00:00
|
|
|
description = "Python package to talk to Philips Hue";
|
|
|
|
homepage = "https://github.com/home-assistant-libs/aiohue";
|
2023-01-24 08:11:33 +00:00
|
|
|
changelog = "https://github.com/home-assistant-libs/aiohue/releases/tag/${version}";
|
2021-05-11 18:45:56 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-05-07 10:33:38 +00:00
|
|
|
};
|
|
|
|
}
|