8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
40 lines
745 B
Nix
40 lines
745 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, aiohttp
|
|
, asyncio-throttle
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohue";
|
|
version = "4.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-PslmDeG/o9WAOc0FhidUNaISrlXa3rba3UEuvPVN/+A=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
asyncio-throttle
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aiohue"
|
|
"aiohue.discovery"
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Python package to talk to Philips Hue";
|
|
homepage = "https://github.com/home-assistant-libs/aiohue";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|