1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-asyncio, 9 pytest-cov-stub, 10 pytestCheckHook, 11 pythonOlder, 12 pytz, 13 yarl, 14}: 15 16buildPythonPackage rec { 17 pname = "eiswarnung"; 18 version = "2.0.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.11"; 22 23 src = fetchFromGitHub { 24 owner = "klaasnicolaas"; 25 repo = "python-eiswarnung"; 26 tag = "v${version}"; 27 hash = "sha256-/61qrRfD7/gaEcvFot34HYXOVLWwTDi/fvcgHDTv9u0="; 28 }; 29 30 __darwinAllowLocalNetworking = true; 31 32 postPatch = '' 33 substituteInPlace pyproject.toml \ 34 --replace-fail '"0.0.0"' '"${version}"' 35 ''; 36 37 pythonRelaxDeps = [ "pytz" ]; 38 39 build-system = [ poetry-core ]; 40 41 dependencies = [ 42 aiohttp 43 pytz 44 yarl 45 ]; 46 47 nativeCheckInputs = [ 48 aresponses 49 pytest-asyncio 50 pytest-cov-stub 51 pytestCheckHook 52 ]; 53 54 pythonImportsCheck = [ "eiswarnung" ]; 55 56 meta = with lib; { 57 description = "Module for getting Eiswarning API forecasts"; 58 homepage = "https://github.com/klaasnicolaas/python-eiswarnung"; 59 changelog = "https://github.com/klaasnicolaas/python-eiswarnung/releases/tag/v${version}"; 60 license = with licenses; [ mit ]; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}