My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pytradfri/default.nix

46 lines
899 B

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiocoap
, dtlssocket
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytradfri";
version = "9.0.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "pytradfri";
rev = version;
hash = "sha256-12ol+2CnoPfkxmDGJJAkoafHGpQuWC4lh0N7lSvx2DE=";
};
passthru.optional-dependencies = {
async = [
aiocoap
dtlssocket
];
};
checkInputs = [
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";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}