ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / aiohue / default.nix
blob657ebc1aa9a171dde5c1f5c8a3cf4c4c064b76a8
1 { lib
2 , aiohttp
3 , asyncio-throttle
4 , awesomeversion
5 , buildPythonPackage
6 , fetchFromGitHub
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "aiohue";
13   version = "4.5.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "home-assistant-libs";
20     repo = pname;
21     rev = version;
22     hash = "sha256-Lcs+Ieh5TEUE+sHqFAZr9rsAZMsI9t2/w87r36IUa1A=";
23   };
25   propagatedBuildInputs = [
26     awesomeversion
27     aiohttp
28     asyncio-throttle
29   ];
31   checkInputs = [
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [
36     "aiohue"
37     "aiohue.discovery"
38   ];
40   disabledTestPaths = [
41     # File are prefixed with test_
42     "examples/"
43   ];
45   meta = with lib; {
46     description = "Python package to talk to Philips Hue";
47     homepage = "https://github.com/home-assistant-libs/aiohue";
48     license = with licenses; [ asl20 ];
49     maintainers = with maintainers; [ fab ];
50   };