Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, asynctest 3, buildPythonPackage 4, fetchFromGitHub 5, pyserial 6, pyserial-asyncio 7, pytest-asyncio 8, pytestCheckHook 9, pythonOlder 10, zigpy 11}: 12 13buildPythonPackage rec { 14 pname = "zigpy-deconz"; 15 version = "0.21.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "zigpy"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-/XsCQt3JHiPrXJH8w2zDmaMQBLWgcmkbj9RooVYuFw0="; 25 }; 26 27 propagatedBuildInputs = [ 28 pyserial 29 pyserial-asyncio 30 zigpy 31 ]; 32 33 nativeCheckInputs = [ 34 asynctest 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "zigpy_deconz" 41 ]; 42 43 meta = with lib; { 44 description = "Library which communicates with Deconz radios for zigpy"; 45 homepage = "https://github.com/zigpy/zigpy-deconz"; 46 changelog = "https://github.com/zigpy/zigpy-deconz/releases/tag/${version}"; 47 license = licenses.gpl3Plus; 48 maintainers = with maintainers; [ mvnetbiz ]; 49 platforms = platforms.linux; 50 }; 51}