1 { lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, crcmod 6, defusedxml 7, fetchFromGitHub 8, freezegun 9, jsonpickle 10, munch 11, mypy 12, pyserial 13, pytest-aiohttp 14, pytest-asyncio 15, pytestCheckHook 16, python-dateutil 17, pythonOlder 18, pytz 19, semver 20}: 21 22buildPythonPackage rec { 23 pname = "plugwise"; 24 version = "0.26.0"; 25 format = "setuptools"; 26 27 disabled = pythonOlder "3.7"; 28 29 src = fetchFromGitHub { 30 owner = pname; 31 repo = "python-plugwise"; 32 rev = "refs/tags/v${version}"; 33 sha256 = "sha256-WDjZZFl64tYZ7cy7xcLEX2/87TJSOw71QSro6cgE98s="; 34 }; 35 36 propagatedBuildInputs = [ 37 aiohttp 38 async-timeout 39 crcmod 40 defusedxml 41 munch 42 pyserial 43 python-dateutil 44 pytz 45 semver 46 ]; 47 48 checkInputs = [ 49 freezegun 50 jsonpickle 51 mypy 52 pytest-aiohttp 53 pytest-asyncio 54 pytestCheckHook 55 ]; 56 57 pythonImportsCheck = [ 58 "plugwise" 59 ]; 60 61 __darwinAllowLocalNetworking = true; 62 63 meta = with lib; { 64 description = "Python module for Plugwise Smiles, Stretch and USB stick"; 65 homepage = "https://github.com/plugwise/python-plugwise"; 66 license = with licenses; [ mit ]; 67 maintainers = with maintainers; [ fab ]; 68 }; 69}