Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 46 lines 1.0 kB view raw
1{ lib 2, asynctest 3, buildPythonPackage 4, fetchFromGitHub 5, pyserial 6, pyserial-asyncio 7, pytest-asyncio 8, pytestCheckHook 9, pythonOlder 10, zigpy }: 11 12buildPythonPackage rec { 13 pname = "zigpy-xbee"; 14 version = "0.13.0"; 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 = version; 24 sha256 = "Krdqb9bYKwUC2cdNppB2+tLwWjzmzIHhXnQ1KRduofU="; 25 }; 26 27 buildInputs = [ 28 pyserial 29 pyserial-asyncio 30 zigpy 31 ]; 32 33 checkInputs = [ 34 asynctest 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 meta = with lib; { 40 description = "A library which communicates with XBee radios for zigpy"; 41 homepage = "https://github.com/zigpy/zigpy-xbee"; 42 license = licenses.gpl3Plus; 43 maintainers = with maintainers; [ etu mvnetbiz ]; 44 platforms = platforms.linux; 45 }; 46}