{ lib, buildPythonPackage, fetchFromGitHub, pytest-asyncio, pytestCheckHook, setuptools, zigpy, }: buildPythonPackage rec { pname = "zigpy-xbee"; version = "0.21.1"; pyproject = true; src = fetchFromGitHub { owner = "zigpy"; repo = "zigpy-xbee"; tag = version; hash = "sha256-ALwhl9WUDkv0POufF/G/rZrn+ITbMdh6y86lShy6ZTg="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "setuptools-git-versioning<2"' "" \ --replace-fail 'dynamic = ["version"]' 'version = "${version}"' ''; build-system = [ setuptools ]; dependencies = [ zigpy ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; meta = { changelog = "https://github.com/zigpy/zigpy-xbee/releases/tag/${version}"; description = "Library which communicates with XBee radios for zigpy"; homepage = "https://github.com/zigpy/zigpy-xbee"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ mvnetbiz ]; platforms = lib.platforms.linux; }; }