nixpkgs/pkgs/development/python-modules/aiohue/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1 KiB
Nix
Raw Normal View History

2021-05-07 17:19:05 +00:00
{ lib
, aiohttp
, 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";
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;
rev = "refs/tags/${version}";
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
asyncio-throttle
2021-05-07 17:19:05 +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";
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
};
}