1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 aiohttp, 7 yarl, 8 pytest-asyncio, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "aiosolaredge"; 14 version = "0.2.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "bdraco"; 19 repo = "aiosolaredge"; 20 tag = "v${version}"; 21 hash = "sha256-1C74U5HWDTJum1XES21t1uIJwm0YW3l041mwvqY/dA4="; 22 }; 23 24 postPatch = '' 25 sed -i "/^addopts/d" pyproject.toml 26 ''; 27 28 build-system = [ poetry-core ]; 29 30 dependencies = [ 31 aiohttp 32 yarl 33 ]; 34 35 pythonImportsCheck = [ "aiosolaredge" ]; 36 37 nativeCheckInputs = [ 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 meta = { 43 changelog = "https://github.com/bdraco/aiosolaredge/blob/${src.rev}/CHANGELOG.md"; 44 description = "Asyncio SolarEdge API client"; 45 homepage = "https://github.com/bdraco/aiosolaredge"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ dotlambda ]; 48 }; 49}