Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyserial 5, pyserial-asyncio 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9, zigpy 10}: 11 12buildPythonPackage rec { 13 pname = "zigpy-xbee"; 14 version = "0.18.2"; 15 # https://github.com/Martiusweb/asynctest/issues/152 16 # broken by upstream python bug with asynctest and 17 # is used exclusively by home-assistant with python 3.8 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "zigpy"; 22 repo = "zigpy-xbee"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-aglKQWIMh0IyrcGt+PZVtzcgs88YbtZB7Tfg7hlB+18="; 25 }; 26 27 buildInputs = [ 28 pyserial 29 pyserial-asyncio 30 zigpy 31 ]; 32 33 nativeCheckInputs = [ 34 pytest-asyncio 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 # https://github.com/zigpy/zigpy-xbee/issues/126 40 "test_form_network" 41 ]; 42 43 meta = with lib; { 44 changelog = "https://github.com/zigpy/zigpy-xbee/releases/tag/${version}"; 45 description = "A library which communicates with XBee radios for zigpy"; 46 homepage = "https://github.com/zigpy/zigpy-xbee"; 47 license = licenses.gpl3Plus; 48 maintainers = with maintainers; [ mvnetbiz ]; 49 platforms = platforms.linux; 50 }; 51}