48af15f7a5
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
38 lines
752 B
Nix
38 lines
752 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, tqdm
|
|
, websocket_client
|
|
, isPy27
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PlexAPI";
|
|
version = "4.5.0";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pkkid";
|
|
repo = "python-plexapi";
|
|
rev = version;
|
|
sha256 = "sha256-MjV1JUHrIHTu3UHy4HnMtTEjSCx3U9kMgUkbCJOAZr0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
tqdm
|
|
websocket_client
|
|
];
|
|
|
|
# Tests require a running Plex instance
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "plexapi" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for the Plex API";
|
|
homepage = "https://github.com/pkkid/python-plexapi";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|