nixpkgs/pkgs/development/python-modules/plexapi/default.nix
2021-03-06 03:02:06 +01:00

39 lines
753 B
Nix

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