depot/third_party/nixpkgs/pkgs/development/python-modules/pytradfri/default.nix
Default email 3cbfd2b52c Project import generated by Copybara.
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
2021-12-18 20:06:50 -05:00

40 lines
794 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, aiocoap
, dtlssocket
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytradfri";
version = "7.2.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "pytradfri";
rev = version;
sha256 = "sha256-4+QdMuwDMLhIIzffHXG+LehuwR9QMcI/CeL5g8wOQfU=";
};
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 ];
};
}