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