1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 mashumaro,
8 orjson,
9 poetry-core,
10 pytest-asyncio,
11 pytest-cov-stub,
12 pytestCheckHook,
13 pythonOlder,
14 syrupy,
15 yarl,
16}:
17
18buildPythonPackage rec {
19 pname = "aiomealie";
20 version = "0.9.3";
21 pyproject = true;
22
23 disabled = pythonOlder "3.11";
24
25 src = fetchFromGitHub {
26 owner = "joostlek";
27 repo = "python-mealie";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-FJhmipWE3DE4PRWkEq8/j9iz9HQ7G7J5I9hwjU6e3FA=";
30 };
31
32 build-system = [ poetry-core ];
33
34 dependencies = [
35 aiohttp
36 mashumaro
37 orjson
38 yarl
39 ];
40
41 nativeCheckInputs = [
42 aioresponses
43 pytest-asyncio
44 pytest-cov-stub
45 pytestCheckHook
46 syrupy
47 ];
48
49 pythonImportsCheck = [ "aiomealie" ];
50
51 meta = with lib; {
52 description = "Module to interact with Mealie";
53 homepage = "https://github.com/joostlek/python-mealie";
54 changelog = "https://github.com/joostlek/python-mealie/releases/tag/v${version}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ fab ];
57 };
58}