at master 906 B view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 paho-mqtt, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pyeconet"; 13 version = "0.1.28"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "w1ll1am23"; 20 repo = "pyeconet"; 21 tag = "v${version}"; 22 hash = "sha256-xGjQlOiA2SzSuhdD/jUYYtL8EiYj4jaIp85JqcGiaUI="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 pythonRelaxDeps = [ "paho-mqtt" ]; 28 29 dependencies = [ 30 paho-mqtt 31 aiohttp 32 ]; 33 34 # Tests require credentials 35 doCheck = false; 36 37 pythonImportsCheck = [ "pyeconet" ]; 38 39 meta = { 40 description = "Python interface to the EcoNet API"; 41 homepage = "https://github.com/w1ll1am23/pyeconet"; 42 changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/${src.tag}"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ fab ]; 45 }; 46}