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