1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, tqdm
6, websocket_client
7, isPy27
8}:
9
10buildPythonPackage rec {
11 pname = "PlexAPI";
12 version = "4.5.2";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "pkkid";
17 repo = "python-plexapi";
18 rev = version;
19 sha256 = "sha256-9rdpisEuLUO7oO7+7SQb4fXqRG30rf4R7bSFY+QpMhM=";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 tqdm
25 websocket_client
26 ];
27
28 # Tests require a running Plex instance
29 doCheck = false;
30 pythonImportsCheck = [ "plexapi" ];
31
32 meta = with lib; {
33 description = "Python bindings for the Plex API";
34 homepage = "https://github.com/pkkid/python-plexapi";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ colemickens ];
37 };
38}