1{ lib, buildPythonPackage, fetchFromGitHub, aiohttp, isPy27 }: 2 3buildPythonPackage rec { 4 pname = "plexwebsocket"; 5 version = "0.0.13"; 6 disabled = isPy27; 7 8 src = fetchFromGitHub { 9 owner = "jjlawren"; 10 repo = "python-plexwebsocket"; 11 rev = "v${version}"; 12 sha256 = "sha256-u9zO3d0d4Qg+u4ezVRGkNDpJqHkYIMrEMJzBK5WKk8Y="; 13 }; 14 15 propagatedBuildInputs = [ aiohttp ]; 16 17 # package does not include tests 18 doCheck = false; 19 20 # at least guarantee the module can be imported 21 pythonImportsCheck = [ 22 "plexwebsocket" 23 ]; 24 25 meta = with lib; { 26 homepage = "https://github.com/jjlawren/python-plexwebsocket/"; 27 description = "Async library to react to events issued over Plex websockets"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ colemickens ]; 30 }; 31}