1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 jsonpickle, 7 paho-mqtt, 8 pytest-asyncio, 9 pytest-timeout, 10 pytestCheckHook, 11 python-dateutil, 12 pythonOlder, 13}: 14 15buildPythonPackage rec { 16 pname = "pyduke-energy"; 17 version = "1.0.6"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "mjmeli"; 24 repo = "pyduke-energy"; 25 tag = "v${version}"; 26 hash = "sha256-7KkUpsHg3P2cF0bVl3FzyAQwzeaCmg+vzRHlM/TIcNA="; 27 }; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 jsonpickle 32 paho-mqtt 33 python-dateutil 34 ]; 35 36 nativeCheckInputs = [ 37 pytest-asyncio 38 pytest-timeout 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "pyduke_energy" ]; 43 44 meta = with lib; { 45 description = "Python module for the Duke Energy API"; 46 homepage = "https://github.com/mjmeli/pyduke-energy"; 47 changelog = "https://github.com/mjmeli/pyduke-energy/releases/tag/v${version}"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}