1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 aiohttp,
11 mashumaro,
12
13 # tests
14 pytestCheckHook,
15 pytest-aiohttp,
16 pytest-cov-stub,
17}:
18
19buildPythonPackage rec {
20 pname = "aiojellyfin";
21 version = "0.14.1";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "Jc2k";
26 repo = "aiojellyfin";
27 tag = "v${version}";
28 hash = "sha256-C2jIP2q+1z6iQoK18jRVaFKXtxyF1RXZMtXWakx7qO0=";
29 };
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 aiohttp
35 mashumaro
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pytest-aiohttp
41 pytest-cov-stub
42 ];
43
44 pythonImportsCheck = [ "aiojellyfin" ];
45
46 meta = with lib; {
47 description = "";
48 homepage = "https://github.com/Jc2k/aiojellyfin";
49 changelog = "https://github.com/Jc2k/aiojellyfin/blob/${src.tag}/CHANGELOG.md";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ hexa ];
52 };
53}