1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 loguru, 7 numpy, 8 setuptools, 9 unasync, 10 urllib3, 11 writableTmpDirAsHomeHook, 12}: 13 14buildPythonPackage rec { 15 pname = "pyosohotwaterapi"; 16 version = "1.2.4"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "osohotwateriot"; 21 repo = "apyosohotwaterapi"; 22 tag = version; 23 hash = "sha256-hpbmiSOLawKVSh7BGV70bRi45HCDKmdxEEhCOdJuIww="; 24 }; 25 26 build-system = [ 27 setuptools 28 unasync 29 writableTmpDirAsHomeHook 30 ]; 31 32 dependencies = [ 33 aiohttp 34 loguru 35 numpy 36 urllib3 37 ]; 38 39 # Module has no tests 40 doCheck = false; 41 42 pythonImportsCheck = [ "apyosoenergyapi" ]; 43 44 meta = with lib; { 45 description = "Module for using the OSO Hotwater API"; 46 homepage = "https://github.com/osohotwateriot/apyosohotwaterapi"; 47 changelog = "https://github.com/osohotwateriot/apyosohotwaterapi/releases/tag/${src.tag}"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}