a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, aiocoap
|
|
, dtlssocket
|
|
, pydantic
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytradfri";
|
|
version = "12.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = "pytradfri";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ov5Z9frYxdbPxqUedwXPYZEinCgQ0ge1jcX6UFdQMHw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pydantic
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
async = [
|
|
aiocoap
|
|
dtlssocket
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ passthru.optional-dependencies.async;
|
|
|
|
pythonImportsCheck = [
|
|
"pytradfri"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python package to communicate with the IKEA Trådfri ZigBee Gateway";
|
|
homepage = "https://github.com/home-assistant-libs/pytradfri";
|
|
changelog = "https://github.com/home-assistant-libs/pytradfri/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|