1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-asyncio, 7 pytest-cov-stub, 8 pytestCheckHook, 9 pythonOlder, 10 tzdata, 11}: 12 13buildPythonPackage rec { 14 pname = "aiozoneinfo"; 15 version = "0.2.3"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "bluetooth-devices"; 22 repo = "aiozoneinfo"; 23 tag = "v${version}"; 24 hash = "sha256-7qd6Yk/K4BLocu8eQK0hLaw2r1jhWIHBr9W4KsAvmx8="; 25 }; 26 27 build-system = [ poetry-core ]; 28 29 dependencies = [ tzdata ]; 30 31 nativeCheckInputs = [ 32 pytest-asyncio 33 pytest-cov-stub 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "aiozoneinfo" ]; 38 39 meta = with lib; { 40 description = "Tools to fetch zoneinfo with asyncio"; 41 homepage = "https://github.com/bluetooth-devices/aiozoneinfo"; 42 changelog = "https://github.com/bluetooth-devices/aiozoneinfo/blob/${version}/CHANGELOG.md"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}