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