2022-01-20 20:00:00 +01:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, mpv, requests, python-mpv-jsonipc, pystray, tkinter }:
|
2020-02-27 01:36:48 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "plex-mpv-shim";
|
2021-12-06 16:03:41 +01:00
|
|
|
version = "1.10.3";
|
2020-02-27 01:36:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iwalton3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:03:41 +01:00
|
|
|
sha256 = "0hgv9g17dkrh3zbsx27n80yvkgix9j2x0rgg6d3qsf7hp5j3xw4r";
|
2020-02-27 01:36:48 +01:00
|
|
|
};
|
|
|
|
|
2022-01-20 20:00:00 +01:00
|
|
|
propagatedBuildInputs = [ mpv requests python-mpv-jsonipc pystray tkinter ];
|
2020-02-27 01:36:48 +01:00
|
|
|
|
2021-01-04 00:07:09 +01:00
|
|
|
# does not contain tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-02-27 01:36:48 +01:00
|
|
|
homepage = "https://github.com/iwalton3/plex-mpv-shim";
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Allows casting of videos to MPV via the Plex mobile and web app";
|
2020-02-27 01:36:48 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|