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.5.4"; 22 23 src = fetchFromGitHub { 24 owner = "zigpy"; 25 repo = pname; 26 rev = "v${version}"; 27 sha256 = "0jki9qmjazh0by02c0w17dyaz0nl3gzjiy064mj6pi502d175831"; 28 }; 29 30 propagatedBuildInputs = [ 31 async-timeout 32 coloredlogs 33 jsonschema 34 pyserial 35 pyserial-asyncio 36 voluptuous 37 zigpy 38 ]; 39 40 checkInputs = [ 41 pytest-asyncio 42 pytest-mock 43 pytest-timeout 44 pytestCheckHook 45 ] ++ lib.optionals (pythonOlder "3.8") [ 46 asynctest 47 ]; 48 49 pythonImportsCheck = [ "zigpy_znp" ]; 50 51 meta = with lib; { 52 description = "Python library for zigpy which communicates with TI ZNP radios"; 53 homepage = "https://github.com/zigpy/zigpy-znp"; 54 license = licenses.gpl3Plus; 55 maintainers = with maintainers; [ mvnetbiz ]; 56 platforms = platforms.linux; 57 }; 58}