1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 hatchling, 8 pytest-asyncio, 9 pytest-cov-stub, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "aioweenect"; 16 version = "1.1.5"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "eifinger"; 23 repo = "aioweenect"; 24 tag = "v${version}"; 25 hash = "sha256-2qTjRXQdTExqY5/ckB6UrkmavzjZK/agfL9+o6fXS0M="; 26 }; 27 28 postPatch = '' 29 substituteInPlace pyproject.toml \ 30 --replace-fail "--asyncio-mode=auto" "" 31 ''; 32 33 pythonRelaxDeps = [ "aiohttp" ]; 34 35 build-system = [ hatchling ]; 36 37 dependencies = [ aiohttp ]; 38 39 nativeCheckInputs = [ 40 aresponses 41 pytest-asyncio 42 pytest-cov-stub 43 pytestCheckHook 44 ]; 45 46 __darwinAllowLocalNetworking = true; 47 48 pythonImportsCheck = [ "aioweenect" ]; 49 50 meta = with lib; { 51 description = "Library for the weenect API"; 52 homepage = "https://github.com/eifinger/aioweenect"; 53 changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}"; 54 license = with licenses; [ mit ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}