620eecebfb
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
40 lines
794 B
Nix
40 lines
794 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, aiocoap
|
|
, dtlssocket
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytradfri";
|
|
version = "7.1.1";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = "pytradfri";
|
|
rev = version;
|
|
sha256 = "sha256-rLpqCpvHTXv6SyT3SOv6oUrWnSDhMG5r+BmznlnNKwg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiocoap
|
|
dtlssocket
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|