Skip to content

Commit

Permalink
python312Packages.meteoswiss-async: init at 0.1.1 (#343881)
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Sep 23, 2024
2 parents 64a773b + f55aee6 commit 6c38568
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/development/python-modules/meteoswiss-async/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
aiohttp,
asyncstdlib,
buildPythonPackage,
dataclasses-json,
fetchFromGitHub,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "meteoswiss-async";
version = "0.1.1";
pyproject = true;

disabled = pythonOlder "3.11";

src = fetchFromGitHub {
owner = "albertomontesg";
repo = "meteoswiss-async";
rev = "refs/tags/${version}";
hash = "sha256-xFvfyLZvBfnbzShKN+94piNUVjV1cfi4jWpc/Xw6XG4=";
};

build-system = [ setuptools ];

dependencies = [
aiohttp
asyncstdlib
dataclasses-json
];

nativeCheckInputs = [
pytestCheckHook
pytest-mock
pytest-cov-stub
];

pythonImportsCheck = [ "meteoswiss_async" ];

meta = {
description = "Asynchronous client library for MeteoSwiss API";
homepage = "https://github.com/albertomontesg/meteoswiss-async";
changelog = "https://github.com/albertomontesg/meteoswiss-async/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7812,6 +7812,8 @@ self: super: with self; {

meteofrance-api = callPackage ../development/python-modules/meteofrance-api { };

meteoswiss-async = callPackage ../development/python-modules/meteoswiss-async { };

methodtools = callPackage ../development/python-modules/methodtools { };

mezzanine = callPackage ../development/python-modules/mezzanine { };
Expand Down

0 comments on commit 6c38568

Please sign in to comment.