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 = "python-overseerr";
20 version = "0.7.1";
21 pyproject = true;
22
23 disabled = pythonOlder "3.11";
24
25 src = fetchFromGitHub {
26 owner = "joostlek";
27 repo = "python-overseerr";
28 tag = "v${version}";
29 hash = "sha256-J0n3uMZaSWcnf3c1d4wdg+OgB9wPE2i/835M6Z3fMPw=";
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 = [ "python_overseerr" ];
50
51 meta = {
52 description = "Client for Overseerr";
53 homepage = "https://github.com/joostlek/python-overseerr";
54 changelog = "https://github.com/joostlek/python-overseerr/releases/tag/v${version}";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ fab ];
57 };
58}