1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, tqdm 6, websocket-client 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "plexapi"; 12 version = "4.8.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "pkkid"; 19 repo = "python-plexapi"; 20 rev = version; 21 sha256 = "sha256-e+nZi84mF9Z/gbFyhmE9TlntkTyrfoNr3U/fwH55fjw="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 tqdm 27 websocket-client 28 ]; 29 30 # Tests require a running Plex instance 31 doCheck = false; 32 33 pythonImportsCheck = [ 34 "plexapi" 35 ]; 36 37 meta = with lib; { 38 description = "Python bindings for the Plex API"; 39 homepage = "https://github.com/pkkid/python-plexapi"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ colemickens ]; 42 }; 43}