From 21c272a980d5b4718b753f87baa63eb3814fe32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 2 Feb 2025 18:48:46 -0800 Subject: [PATCH] python313Packages.nyt-games: init at 0.4.4 --- .../python-modules/nyt-games/default.nix | 55 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/python-modules/nyt-games/default.nix diff --git a/pkgs/development/python-modules/nyt-games/default.nix b/pkgs/development/python-modules/nyt-games/default.nix new file mode 100644 index 000000000000..bef5579488b6 --- /dev/null +++ b/pkgs/development/python-modules/nyt-games/default.nix @@ -0,0 +1,55 @@ +{ + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + lib, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, + syrupy, + yarl, +}: + +buildPythonPackage rec { + pname = "nyt-games"; + version = "0.4.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "joostlek"; + repo = "python-nyt-games"; + tag = "v${version}"; + hash = "sha256-eMJ96E4sGmekr6mOR30UIZBclH/0xc8AWv3zL1ItKjo="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + mashumaro + orjson + yarl + ]; + + pythonImportsCheck = [ "nyt_games" ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytest-cov-stub + pytestCheckHook + syrupy + ]; + + meta = { + changelog = "https://github.com/joostlek/python-nyt-games/releases/tag/${src.tag}"; + description = "Asynchronous Python client for NYT games"; + homepage = "https://github.com/joostlek/python-nyt-games"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d366c45cd051..6514d878ae93 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9499,6 +9499,8 @@ self: super: with self; { nxt-python = callPackage ../development/python-modules/nxt-python { }; + nyt-games = callPackage ../development/python-modules/nyt-games { }; + plugp100 = callPackage ../development/python-modules/plugp100 {}; python-bugzilla = callPackage ../development/python-modules/python-bugzilla { };