nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 46 lines 899 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiocoap 6, dtlssocket 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "pytradfri"; 12 version = "9.0.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "home-assistant-libs"; 19 repo = "pytradfri"; 20 rev = version; 21 hash = "sha256-12ol+2CnoPfkxmDGJJAkoafHGpQuWC4lh0N7lSvx2DE="; 22 }; 23 24 passthru.optional-dependencies = { 25 async = [ 26 aiocoap 27 dtlssocket 28 ]; 29 }; 30 31 checkInputs = [ 32 pytestCheckHook 33 ] 34 ++ passthru.optional-dependencies.async; 35 36 pythonImportsCheck = [ 37 "pytradfri" 38 ]; 39 40 meta = with lib; { 41 description = "Python package to communicate with the IKEA Trådfri ZigBee Gateway"; 42 homepage = "https://github.com/home-assistant-libs/pytradfri"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ dotlambda ]; 45 }; 46}