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 = "pyosoenergyapi"; 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 = [ "pyosoenergyapi" ]; 43 44 meta = { 45 description = "Python library to interface with the OSO Energy API"; 46 homepage = "https://github.com/osohotwateriot/apyosohotwaterapi"; 47 changelog = "https://github.com/osohotwateriot/apyosohotwaterapi/releases/tag/${version}"; 48 license = lib.licenses.mit; 49 maintainers = [ lib.maintainers.jamiemagee ]; 50 }; 51}