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