summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mpv-jsonipc/default.nix
blob: 4ddb70266c801b5c653b52ba88a20e7c6a9c7d94 (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
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
  tqdm,
  websocket-client,
}:

buildPythonPackage rec {
  pname = "python-mpv-jsonipc";
  version = "1.2.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "iwalton3";
    repo = "python-mpv-jsonipc";
    rev = "v${version}";
    hash = "sha256-ugdLUmo5w+IbtmL2b6+la1X01mWNmnXr9j6e99oPWpE=";
  };

  # 'mpv-jsonipc' does not have any tests
  doCheck = false;

  propagatedBuildInputs = [
    requests
    tqdm
    websocket-client
  ];

  pythonImportsCheck = [ "python_mpv_jsonipc" ];

  meta = {
    homepage = "https://github.com/iwalton3/python-mpv-jsonipc";
    description = "Python API to MPV using JSON IPC";
    license = lib.licenses.gpl3;
    maintainers = [ ];
  };
}