1{
2 aiohttp,
3 aioresponses,
4 buildPythonPackage,
5 fetchFromGitHub,
6 lib,
7 mashumaro,
8 orjson,
9 poetry-core,
10 pytest-asyncio,
11 pytest-cov-stub,
12 pytestCheckHook,
13 syrupy,
14 yarl,
15}:
16
17buildPythonPackage rec {
18 pname = "nyt-games";
19 version = "0.5.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "joostlek";
24 repo = "python-nyt-games";
25 tag = "v${version}";
26 hash = "sha256-bpamhrTBDFp1c/RvvbVjRFXEn5HoxY+3jGH7NkfsFxo=";
27 };
28
29 build-system = [ poetry-core ];
30
31 dependencies = [
32 aiohttp
33 mashumaro
34 orjson
35 yarl
36 ];
37
38 pythonImportsCheck = [ "nyt_games" ];
39
40 nativeCheckInputs = [
41 aioresponses
42 pytest-asyncio
43 pytest-cov-stub
44 pytestCheckHook
45 syrupy
46 ];
47
48 meta = {
49 changelog = "https://github.com/joostlek/python-nyt-games/releases/tag/${src.tag}";
50 description = "Asynchronous Python client for NYT games";
51 homepage = "https://github.com/joostlek/python-nyt-games";
52 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [ dotlambda ];
54 };
55}