depot/third_party/nixpkgs/pkgs/development/python-modules/plexapi/default.nix
Default email 8ec1fd4587 Project import generated by Copybara.
GitOrigin-RevId: 266dc8c3d052f549826ba246d06787a219533b8f
2021-03-15 09:37:03 +01:00

38 lines
753 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, tqdm
, websocket_client
, isPy27
}:
buildPythonPackage rec {
pname = "PlexAPI";
version = "4.4.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "pkkid";
repo = "python-plexapi";
rev = version;
sha256 = "11zarqnrpis6xpsjdvfl3pczv1l9rzbgkawkv2lhfvzlnc00d7df";
};
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 ];
};
}