b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
40 lines
896 B
Nix
40 lines
896 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plexwebsocket";
|
|
version = "0.0.14";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jjlawren";
|
|
repo = "python-plexwebsocket";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-gT9RWpaR33ROs6ttjH2joNPi99Ng94Tp/R9eZY1eGZk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
# Package does not include tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"plexwebsocket"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to react to events issued over Plex websockets";
|
|
homepage = "https://github.com/jjlawren/python-plexwebsocket/";
|
|
changelog = "https://github.com/jjlawren/python-plexwebsocket/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ colemickens ];
|
|
};
|
|
}
|