depot/third_party/nixpkgs/pkgs/development/python-modules/pytradfri/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

43 lines
823 B
Nix

{ 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=";
};
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 ];
};
}