python311Packages.apple-weatherkit: init at 1.0.3
Python library for Apple WeatherKit https://github.com/tjhorner/python-weatherkit
This commit is contained in:
parent
72457c9fc5
commit
0451d59bb1
47
pkgs/development/python-modules/apple-weatherkit/default.nix
Normal file
47
pkgs/development/python-modules/apple-weatherkit/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user