1{
2 lib,
3 buildPythonPackage,
4 certifi,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8 requests,
9 urllib3,
10 websocket-client,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "jellyfin-apiclient-python";
16 version = "1.11.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchFromGitHub {
22 owner = "jellyfin";
23 repo = "jellyfin-apiclient-python";
24 tag = "v${version}";
25 hash = "sha256-TFF0pENSXWbmIb7IM1bayDACd0VOCTKc1WzLRvTJYNA=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 certifi
32 requests
33 urllib3
34 websocket-client
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "jellyfin_apiclient_python" ];
40
41 meta = with lib; {
42 description = "Python API client for Jellyfin";
43 homepage = "https://github.com/jellyfin/jellyfin-apiclient-python";
44 license = licenses.gpl3Only;
45 maintainers = with maintainers; [ jojosch ];
46 };
47}