1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, tqdm
6, websocket-client
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "plexapi";
12 version = "4.14.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "pkkid";
19 repo = "python-plexapi";
20 rev = "refs/tags/${version}";
21 hash = "sha256-wSM8YCKRvwEs7fEjUjOp52PdF2Y1kxnX/Xpf0KdXR2k=";
22 };
23
24 propagatedBuildInputs = [
25 requests
26 tqdm
27 websocket-client
28 ];
29
30 # Tests require a running Plex instance
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "plexapi"
35 ];
36
37 meta = with lib; {
38 description = "Python bindings for the Plex API";
39 homepage = "https://github.com/pkkid/python-plexapi";
40 changelog = "https://github.com/pkkid/python-plexapi/releases/tag/${version}";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ colemickens ];
43 };
44}