1{ lib, buildPythonPackage, fetchFromGitHub, requests
2, tqdm, websocket_client, pytest, pillow, mock, isPy27 }:
3
4buildPythonPackage rec {
5 pname = "PlexAPI";
6 version = "3.6.0";
7
8 src = fetchFromGitHub {
9 owner = "pkkid";
10 repo = "python-plexapi";
11 rev = version;
12 sha256 = "1lzp3367hmcpqwbkp4ckdv6hv37knwnwya88jicwl1smznpmjdfv";
13 };
14
15 propagatedBuildInputs = [ requests tqdm websocket_client ];
16
17 checkInputs = [ pytest pillow ]
18 ++ lib.optionals isPy27 [ mock ];
19
20 meta = with lib; {
21 homepage = "https://github.com/pkkid/python-plexapi";
22 description = "Python bindings for the Plex API";
23 license = licenses.bsd3;
24 maintainers = with maintainers; [ colemickens ];
25 };
26}