python311Packages.apple-weatherkit: init at 1.0.3

Python library for Apple WeatherKit
https://github.com/tjhorner/python-weatherkit
This commit is contained in:
Fabian Affolter 2023-09-17 09:29:25 +02:00
parent 72457c9fc5
commit 0451d59bb1
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, aiohttp
, pythonOlder
, pyjwt
}:
buildPythonPackage rec {
pname = "apple-weatherkit";
version = "1.0.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tjhorner";
repo = "python-weatherkit";
rev = "refs/tags/v${version}";
hash = "sha256-nMszmE+I/MqXvwS0DazknRjRUP6WxVJ1mvteOam5pvE=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pyjwt
];
# 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 ];
};
}

View File

@ -618,6 +618,8 @@ self: super: with self; {
appdirs = callPackage ../development/python-modules/appdirs { };
apple-weatherkit = callPackage ../development/python-modules/apple-weatherkit { };
applicationinsights = callPackage ../development/python-modules/applicationinsights { };
appnope = callPackage ../development/python-modules/appnope { };