Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.18.0"; 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 hash = "sha256-zSaT9WdA4tR8tJAShSzqL+f/nTLQJbeIZnbSBe1EOks="; 27 }; 28 29 buildInputs = [ 30 pyserial 31 pyserial-asyncio 32 zigpy 33 ]; 34 35 nativeCheckInputs = [ 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 changelog = "https://github.com/zigpy/zigpy-xbee/releases/tag/${version}"; 48 description = "A library which communicates with XBee radios for zigpy"; 49 homepage = "https://github.com/zigpy/zigpy-xbee"; 50 license = licenses.gpl3Plus; 51 maintainers = with maintainers; [ mvnetbiz ]; 52 platforms = platforms.linux; 53 }; 54}