2020-01-21 02:30:48 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, requests
|
2020-10-06 06:11:30 +00:00
|
|
|
, tqdm, websocket_client, pytest, pillow, isPy27 }:
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PlexAPI";
|
2021-02-07 22:38:06 +00:00
|
|
|
version = "4.3.1";
|
2020-10-06 06:11:30 +00:00
|
|
|
disabled = isPy27;
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkkid";
|
|
|
|
repo = "python-plexapi";
|
|
|
|
rev = version;
|
2021-02-07 22:38:06 +00:00
|
|
|
sha256 = "sha256-gRXNOGd9YGcGysKbAtiNwi5NxPvv39F6PEXBjiYbVq4=";
|
2020-01-21 02:30:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests tqdm websocket_client ];
|
|
|
|
|
2020-10-06 06:11:30 +00:00
|
|
|
checkInputs = [ pytest pillow ];
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pkkid/python-plexapi";
|
|
|
|
description = "Python bindings for the Plex API";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|