1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 mashumaro, 8 orjson, 9 poetry-core, 10 pytest-asyncio, 11 pytest-cov-stub, 12 pytestCheckHook, 13 pythonOlder, 14 syrupy, 15 yarl, 16}: 17 18buildPythonPackage rec { 19 pname = "airgradient"; 20 version = "0.9.2"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.11"; 24 25 src = fetchFromGitHub { 26 owner = "airgradienthq"; 27 repo = "python-airgradient"; 28 tag = "v${version}"; 29 hash = "sha256-llhdLqVueATKCb4wyPYjnsdOpbbE2BnUU0PH0jwHPMU="; 30 }; 31 32 build-system = [ poetry-core ]; 33 34 dependencies = [ 35 aiohttp 36 mashumaro 37 orjson 38 yarl 39 ]; 40 41 nativeCheckInputs = [ 42 aioresponses 43 pytest-asyncio 44 pytest-cov-stub 45 pytestCheckHook 46 syrupy 47 ]; 48 49 pythonImportsCheck = [ "airgradient" ]; 50 51 meta = with lib; { 52 description = "Module for AirGradient"; 53 homepage = "https://github.com/airgradienthq/python-airgradient"; 54 changelog = "https://github.com/airgradienthq/python-airgradient/releases/tag/v${version}"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}