nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 syrupy,
14 yarl,
15}:
16
17buildPythonPackage rec {
18 pname = "python-overseerr";
19 version = "0.8.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "joostlek";
24 repo = "python-overseerr";
25 tag = "v${version}";
26 hash = "sha256-izgUTgRG63FUjb8mH1W4yXFRvwPWIWPKsSiY9awq9SM=";
27 };
28
29 build-system = [ poetry-core ];
30
31 dependencies = [
32 aiohttp
33 mashumaro
34 orjson
35 yarl
36 ];
37
38 nativeCheckInputs = [
39 aioresponses
40 pytest-asyncio
41 pytest-cov-stub
42 pytestCheckHook
43 syrupy
44 ];
45
46 pythonImportsCheck = [ "python_overseerr" ];
47
48 meta = {
49 description = "Client for Overseerr";
50 homepage = "https://github.com/joostlek/python-overseerr";
51 changelog = "https://github.com/joostlek/python-overseerr/releases/tag/${src.tag}";
52 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [ fab ];
54 };
55}