1{ lib 2, async-timeout 3, asynctest 4, buildPythonPackage 5, coloredlogs 6, fetchFromGitHub 7, jsonschema 8, pyserial 9, pyserial-asyncio 10, pytest-asyncio 11, pytest-mock 12, pytest-timeout 13, pytestCheckHook 14, pythonOlder 15, voluptuous 16, zigpy 17}: 18 19buildPythonPackage rec { 20 pname = "zigpy-znp"; 21 version = "0.9.1"; 22 format = "setuptools"; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "zigpy"; 28 repo = pname; 29 rev = "refs/tags/v${version}"; 30 sha256 = "sha256-32QSFBzYg+E++5euCWKgbF3/uLEn1uObenmR/Wv9XZc="; 31 }; 32 33 propagatedBuildInputs = [ 34 async-timeout 35 coloredlogs 36 jsonschema 37 pyserial 38 pyserial-asyncio 39 voluptuous 40 zigpy 41 ]; 42 43 checkInputs = [ 44 pytest-asyncio 45 pytest-mock 46 pytest-timeout 47 pytestCheckHook 48 ] ++ lib.optionals (pythonOlder "3.8") [ 49 asynctest 50 ]; 51 52 pythonImportsCheck = [ 53 "zigpy_znp" 54 ]; 55 56 meta = with lib; { 57 description = "Library for zigpy which communicates with TI ZNP radios"; 58 homepage = "https://github.com/zigpy/zigpy-znp"; 59 license = licenses.gpl3Plus; 60 maintainers = with maintainers; [ mvnetbiz ]; 61 platforms = platforms.linux; 62 }; 63}