1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 poetry-core, 7}: 8 9buildPythonPackage rec { 10 pname = "electrickiwi-api"; 11 version = "0.9.14"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "mikey0000"; 16 repo = "EK-API"; 17 tag = "v${version}"; 18 hash = "sha256-UXweOz5olwx3ZI2M7eI1n729tqfLiWszV2zTWbrA9CM="; 19 }; 20 21 build-system = [ poetry-core ]; 22 23 dependencies = [ aiohttp ]; 24 25 pythonImportsCheck = [ "electrickiwi_api" ]; 26 27 # Tests require authentication credentials 28 doCheck = false; 29 30 meta = { 31 description = "Python library for interfacing with the Electric Kiwi power company API"; 32 homepage = "https://github.com/mikey0000/EK-API"; 33 license = lib.licenses.gpl3Only; 34 maintainers = [ lib.maintainers.jamiemagee ]; 35 }; 36}