2021-02-08 09:42:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, tqdm
|
2021-06-15 12:12:45 +01:00
|
|
|
, websocket-client
|
2021-07-31 21:56:43 +01:00
|
|
|
, pythonOlder
|
2021-02-08 09:42:35 +00:00
|
|
|
}:
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-07-31 21:56:43 +01:00
|
|
|
pname = "plexapi";
|
2021-10-17 12:36:33 +01:00
|
|
|
version = "4.7.2";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-01-21 02:30:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pkkid";
|
|
|
|
repo = "python-plexapi";
|
|
|
|
rev = version;
|
2021-10-17 12:36:33 +01:00
|
|
|
sha256 = "sha256-v12CL2VR9QAoj44F8V1qw/qflzQ1WRi1cvWn/U/wW/E=";
|
2020-01-21 02:30:48 +00:00
|
|
|
};
|
|
|
|
|
2021-02-08 09:42:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
tqdm
|
2021-06-15 12:12:45 +01:00
|
|
|
websocket-client
|
2021-02-08 09:42:35 +00:00
|
|
|
];
|
2020-01-21 02:30:48 +00:00
|
|
|
|
2021-02-08 09:42:35 +00:00
|
|
|
# Tests require a running Plex instance
|
|
|
|
doCheck = false;
|
2021-07-31 21:56:43 +01:00
|
|
|
|
2021-02-08 09:42:35 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|