2020-02-07 06:40:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, requests
|
2021-06-15 12:12:45 +01:00
|
|
|
, tqdm, websocket-client, pythonOlder }:
|
2020-02-07 06:40:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-mpv-jsonipc";
|
2020-07-01 12:12:21 +01:00
|
|
|
version = "1.1.11";
|
2020-02-07 06:40:54 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iwalton3";
|
|
|
|
repo = "python-mpv-jsonipc";
|
|
|
|
rev = "v${version}";
|
2020-07-01 12:12:21 +01:00
|
|
|
sha256 = "034vc2j54dciiq80k7jn6kx4g7i58sjk0ykma039k5rihj2rblpk";
|
2020-02-07 06:40:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 'mpv-jsonipc' does not have any tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-15 12:12:45 +01:00
|
|
|
propagatedBuildInputs = [ requests tqdm websocket-client ];
|
2020-02-07 06:40:54 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "python_mpv_jsonipc" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/iwalton3/python-mpv-jsonipc";
|
|
|
|
description = "Python API to MPV using JSON IPC";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|