Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytradfri / default.nix
blob83ab0a9879f34aed89871e266610aa6fb6941acd
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , aiocoap
6 , dtlssocket
7 , pydantic
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "pytradfri";
13   version = "13.0.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "home-assistant-libs";
20     repo = "pytradfri";
21     rev = "refs/tags/${version}";
22     hash = "sha256-CWv3ebDulZuiFP+nJ2Xr7U/HTDFTqA9VYC0USLkpWR0=";
23   };
25   propagatedBuildInputs = [
26     pydantic
27   ];
29   passthru.optional-dependencies = {
30     async = [
31       aiocoap
32       dtlssocket
33     ];
34   };
36   nativeCheckInputs = [
37     pytestCheckHook
38   ]
39   ++ passthru.optional-dependencies.async;
41   pythonImportsCheck = [
42     "pytradfri"
43   ];
45   meta = with lib; {
46     description = "Python package to communicate with the IKEA Trådfri ZigBee Gateway";
47     homepage = "https://github.com/home-assistant-libs/pytradfri";
48     changelog = "https://github.com/home-assistant-libs/pytradfri/releases/tag/${version}";
49     license = licenses.mit;
50     maintainers = with maintainers; [ dotlambda ];
51   };