1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 tqdm,
7 websocket-client,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "python-mpv-jsonipc";
13 version = "1.2.1";
14 format = "setuptools";
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "iwalton3";
19 repo = "python-mpv-jsonipc";
20 rev = "v${version}";
21 hash = "sha256-ugdLUmo5w+IbtmL2b6+la1X01mWNmnXr9j6e99oPWpE=";
22 };
23
24 # 'mpv-jsonipc' does not have any tests
25 doCheck = false;
26
27 propagatedBuildInputs = [
28 requests
29 tqdm
30 websocket-client
31 ];
32
33 pythonImportsCheck = [ "python_mpv_jsonipc" ];
34
35 meta = with lib; {
36 homepage = "https://github.com/iwalton3/python-mpv-jsonipc";
37 description = "Python API to MPV using JSON IPC";
38 license = licenses.gpl3;
39 maintainers = with maintainers; [ ];
40 };
41}