2020-01-21 02:30:48 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, requests
|
|
|
|
, tqdm, websocket_client, pytest, pillow, mock, isPy27 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PlexAPI";
|
2020-05-27 01:45:13 +01:00
|
|
|
version = "3.6.0";
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkkid";
|
|
|
|
repo = "python-plexapi";
|
|
|
|
rev = version;
|
2020-05-27 01:45:13 +01:00
|
|
|
sha256 = "1lzp3367hmcpqwbkp4ckdv6hv37knwnwya88jicwl1smznpmjdfv";
|
2020-01-21 02:30:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests tqdm websocket_client ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pillow ]
|
|
|
|
++ lib.optionals isPy27 [ mock ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pkkid/python-plexapi";
|
|
|
|
description = "Python bindings for the Plex API";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|