summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/plexwebsocket/default.nix
blob: 5bed5b7d3eb053f26890583923ec2bf1abf53e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
}:

buildPythonPackage rec {
  pname = "plexwebsocket";
  version = "0.0.14";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "jjlawren";
    repo = "python-plexwebsocket";
    tag = "v${version}";
    hash = "sha256-gT9RWpaR33ROs6ttjH2joNPi99Ng94Tp/R9eZY1eGZk=";
  };

  propagatedBuildInputs = [ aiohttp ];

  # Package does not include tests
  doCheck = false;

  pythonImportsCheck = [ "plexwebsocket" ];

  meta = {
    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 = lib.licenses.mit;
    maintainers = [ ];
  };
}