at master 1.2 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 mashumaro, 8 orjson, 9 poetry-core, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pytestCheckHook, 13 syrupy, 14 yarl, 15}: 16 17buildPythonPackage rec { 18 pname = "autarco"; 19 version = "3.2.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "klaasnicolaas"; 24 repo = "python-autarco"; 25 tag = "v${version}"; 26 hash = "sha256-+j7limAYKFj9DZjetXnaFKIolitRppU1QLFRB94DlgE="; 27 }; 28 29 postPatch = '' 30 # Upstream doesn't set a version for the pyproject.toml 31 substituteInPlace pyproject.toml \ 32 --replace-fail "0.0.0" "${version}" 33 ''; 34 35 build-system = [ poetry-core ]; 36 37 dependencies = [ 38 aiohttp 39 mashumaro 40 orjson 41 yarl 42 ]; 43 44 __darwinAllowLocalNetworking = true; 45 46 nativeCheckInputs = [ 47 aresponses 48 pytest-asyncio 49 pytest-cov-stub 50 pytestCheckHook 51 syrupy 52 ]; 53 54 pythonImportsCheck = [ "autarco" ]; 55 56 meta = with lib; { 57 description = "Module for the Autarco Inverter"; 58 homepage = "https://github.com/klaasnicolaas/python-autarco"; 59 changelog = "https://github.com/klaasnicolaas/python-autarco/releases/tag/${src.tag}"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}