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.13.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "pkkid"; 19 repo = "python-plexapi"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-py3UmKie96FR8klf97zsYxUkrQisO7/cnWUgKxgB+tQ="; 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}