1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pdm-pep517, 6 aiohttp, 7 async-timeout, 8}: 9 10buildPythonPackage rec { 11 pname = "imeon-inverter-api"; 12 version = "0.4.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Imeon-Inverters-for-Home-Assistant"; 17 repo = "inverter-api"; 18 tag = version; 19 hash = "sha256-8tecWWDYFq+kAqWM9vKhM15LKnEVqaDBkH6jh0xwIsE="; 20 }; 21 22 build-system = [ pdm-pep517 ]; 23 24 dependencies = [ 25 aiohttp 26 async-timeout 27 ]; 28 29 pythonImportsCheck = [ "imeon_inverter_api" ]; 30 31 # upstream has no tests 32 doCheck = false; 33 34 meta = { 35 changelog = "https://github.com/Imeon-Inverters-for-Home-Assistant/inverter-api/releases/tag/${src.tag}"; 36 description = "Standalone API to collect data from the Imeon Energy Inverters that uses HTTP POST/GET"; 37 homepage = "https://github.com/Imeon-Inverters-for-Home-Assistant/inverter-api"; 38 license = lib.licenses.asl20; 39 maintainers = with lib.maintainers; [ dotlambda ]; 40 }; 41}