1{ lib 2, buildPythonPackage 3, click 4, crcmod 5, fetchFromGitHub 6, getmac 7, intelhex 8, paho-mqtt 9, pyserial 10, pyserial-asyncio 11, pytest-sugar 12, pytest-timeout 13, pytestCheckHook 14, pythonOlder 15, voluptuous 16}: 17 18buildPythonPackage rec { 19 pname = "pymysensors"; 20 version = "0.22.1"; 21 format = "setuptools"; 22 23 disabled = pythonOlder "3.6"; 24 25 src = fetchFromGitHub { 26 owner = "theolind"; 27 repo = pname; 28 rev = version; 29 sha256 = "sha256-n4khOQspJBeq0w+epdXYZh6I1lI1drB1JewZ6GfzVHs="; 30 }; 31 32 propagatedBuildInputs = [ 33 click 34 crcmod 35 getmac 36 intelhex 37 paho-mqtt 38 pyserial 39 pyserial-asyncio 40 voluptuous 41 ]; 42 43 checkInputs = [ 44 pytest-sugar 45 pytest-timeout 46 pytestCheckHook 47 ]; 48 49 pythonImportsCheck = [ 50 "mysensors" 51 ]; 52 53 meta = with lib; { 54 description = "Python API for talking to a MySensors gateway"; 55 homepage = "https://github.com/theolind/pymysensors"; 56 license = with licenses; [ mit ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}