depot/third_party/nixpkgs/pkgs/development/python-modules/apple-weatherkit/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

49 lines
1,003 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, aiohttp
, aiohttp-retry
, pythonOlder
, pyjwt
}:
buildPythonPackage rec {
pname = "apple-weatherkit";
version = "1.1.2";
format = "pyproject";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "tjhorner";
repo = "python-weatherkit";
rev = "refs/tags/v${version}";
hash = "sha256-w3KinicaF01I6fIidI7XYHpB8eq52RTUw/BMLrx6Grk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
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 ];
};
}