Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
975 B
Nix
48 lines
975 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
aiohttp,
|
|
aiohttp-retry,
|
|
pythonOlder,
|
|
pyjwt,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apple-weatherkit";
|
|
version = "1.1.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tjhorner";
|
|
repo = "python-weatherkit";
|
|
tag = "v${version}";
|
|
hash = "sha256-JvN8GmlTxz9VGttIFVG6q//c+BhP2pt1tBOhnJhNwJg=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiohttp-retry
|
|
pyjwt
|
|
]
|
|
++ pyjwt.optional-dependencies.crypto;
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "apple_weatherkit" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for Apple WeatherKit";
|
|
homepage = "https://github.com/tjhorner/python-weatherkit";
|
|
changelog = "https://github.com/tjhorner/python-weatherkit/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|