depot/third_party/nixpkgs/pkgs/development/python-modules/aiohue/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

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 ];
};
}