1{ lib 2, paho-mqtt 3, buildPythonPackage 4, fetchPypi 5, aiohttp 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pyeconet"; 11 version = "0.1.15"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-zxD2sjKWB/bmxwpVFgkKTngMhr4bVuW+qkSt+pbxqPY="; 19 }; 20 21 propagatedBuildInputs = [ 22 paho-mqtt 23 aiohttp 24 ]; 25 26 # Tests require credentials 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "pyeconet" 31 ]; 32 33 meta = with lib; { 34 description = "Python interface to the EcoNet API"; 35 homepage = "https://github.com/w1ll1am23/pyeconet"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}