2021-02-08 09:42:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, tqdm
|
|
|
|
, websocket_client
|
|
|
|
, isPy27
|
|
|
|
}:
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PlexAPI";
|
2021-03-23 22:39:50 +00:00
|
|
|
version = "4.5.0";
|
2020-10-06 07:11:30 +01:00
|
|
|
disabled = isPy27;
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkkid";
|
|
|
|
repo = "python-plexapi";
|
|
|
|
rev = version;
|
2021-03-23 22:39:50 +00:00
|
|
|
sha256 = "sha256-MjV1JUHrIHTu3UHy4HnMtTEjSCx3U9kMgUkbCJOAZr0=";
|
2020-01-21 02:30:48 +00:00
|
|
|
};
|
|
|
|
|
2021-02-08 09:42:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
tqdm
|
|
|
|
websocket_client
|
|
|
|
];
|
2020-01-21 02:30:48 +00:00
|
|
|
|
2021-02-08 09:42:35 +00:00
|
|
|
# Tests require a running Plex instance
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "plexapi" ];
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for the Plex API";
|
2021-02-08 09:42:35 +00:00
|
|
|
homepage = "https://github.com/pkkid/python-plexapi";
|
2020-01-21 02:30:48 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|