2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, tqdm
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2021-08-05 21:33:18 +00:00
|
|
|
, pythonOlder
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "plexapi";
|
2021-09-22 15:38:15 +00:00
|
|
|
version = "4.7.1";
|
2021-08-05 21:33:18 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkkid";
|
|
|
|
repo = "python-plexapi";
|
|
|
|
rev = version;
|
2021-09-22 15:38:15 +00:00
|
|
|
sha256 = "sha256-kZREcjLBSWXGULEKfWiherRCl5UXLOw4f3JFaqs8dXw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
tqdm
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-02-13 14:23:35 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
# Tests require a running Plex instance
|
|
|
|
doCheck = false;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
pythonImportsCheck = [ "plexapi" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for the Plex API";
|
2021-02-13 14:23:35 +00:00
|
|
|
homepage = "https://github.com/pkkid/python-plexapi";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|