1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 aiohttp, 7 aiohttp-retry, 8 pythonOlder, 9 pyjwt, 10}: 11 12buildPythonPackage rec { 13 pname = "apple-weatherkit"; 14 version = "1.1.3"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "tjhorner"; 21 repo = "python-weatherkit"; 22 tag = "v${version}"; 23 hash = "sha256-JvN8GmlTxz9VGttIFVG6q//c+BhP2pt1tBOhnJhNwJg="; 24 }; 25 26 build-system = [ poetry-core ]; 27 28 dependencies = [ 29 aiohttp 30 aiohttp-retry 31 pyjwt 32 ] 33 ++ pyjwt.optional-dependencies.crypto; 34 35 # Module has no tests 36 doCheck = false; 37 38 pythonImportsCheck = [ "apple_weatherkit" ]; 39 40 meta = with lib; { 41 description = "Python library for Apple WeatherKit"; 42 homepage = "https://github.com/tjhorner/python-weatherkit"; 43 changelog = "https://github.com/tjhorner/python-weatherkit/releases/tag/v${version}"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}