jellyfin-mpv-shim: 1.5.11 -> 1.7.1

This commit is contained in:
Johannes Schleifenbaum 2020-08-04 12:41:13 +02:00
parent a2992d836c
commit daa7574361
No known key found for this signature in database
GPG Key ID: 059093B1A278BCD0
4 changed files with 65 additions and 6 deletions

View File

@ -1,19 +1,27 @@
{ stdenv, buildPythonApplication, fetchFromGitHub, fetchurl
{ stdenv, buildPythonApplication, fetchFromGitHub, callPackage
, mpv, python-mpv-jsonipc, jellyfin-apiclient-python
, pillow, tkinter, pystray, jinja2, pywebview }:
let
shaderPack = callPackage ./shader-pack.nix {};
in
buildPythonApplication rec {
pname = "jellyfin-mpv-shim";
version = "1.5.11";
version = "1.7.1";
src = fetchFromGitHub {
owner = "iwalton3";
repo = pname;
rev = "v${version}";
sha256 = "14hm8yccdp7w1vdnvdzafk1byhaq1qsr33i4962s1nvm9lafxkr7";
sha256 = "0alrh5h3f8pq9mrq09jmpqa0yslxsjqwij6kwn24ggbwc10zkq75";
fetchSubmodules = true; # needed for display_mirror css file
};
patches = [
./disable-desktop-client.patch
./disable-update-check.patch
];
# override $HOME directory:
# error: [Errno 13] Permission denied: '/homeless-shelter'
#
@ -25,10 +33,9 @@ buildPythonApplication rec {
rm jellyfin_mpv_shim/win_utils.py
'';
# disable the desktop client for now
postPatch = ''
substituteInPlace setup.py \
--replace "'jellyfin-mpv-desktop=jellyfin_mpv_shim.mpv_shim:main_desktop'," ""
# link the default shader pack
ln -s ${shaderPack} jellyfin_mpv_shim/default_shader_pack
'';
propagatedBuildInputs = [

View File

@ -0,0 +1,12 @@
diff --git a/setup.py b/setup.py
index a831959..2206e6e 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,6 @@ setup(
entry_points={
'console_scripts': [
'jellyfin-mpv-shim=jellyfin_mpv_shim.mpv_shim:main',
- 'jellyfin-mpv-desktop=jellyfin_mpv_shim.mpv_shim:main_desktop',
]
},
classifiers=[

View File

@ -0,0 +1,15 @@
diff --git a/jellyfin_mpv_shim/conf.py b/jellyfin_mpv_shim/conf.py
index 0ab9326..ccedc17 100644
--- a/jellyfin_mpv_shim/conf.py
+++ b/jellyfin_mpv_shim/conf.py
@@ -88,8 +88,8 @@ class Settings(object):
"sync_revert_seek": True,
"sync_osd_message": True,
"screenshot_menu": True,
- "check_updates": True,
- "notify_updates": True,
+ "check_updates": False,
+ "notify_updates": False,
"lang": None,
"desktop_scale": 1.0,
}

View File

@ -0,0 +1,25 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "jellyfin-mpv-shim-shader-pack";
version = "1.0.0";
src = fetchFromGitHub {
owner = "iwalton3";
repo = "default-shader-pack";
rev = "v${version}";
sha256 = "04y8gvjy4v3773b1kyan4dxqcf86b56x7v33m2k246jbn0rl2pgr";
};
installPhase = ''
mkdir -p $out
cp -a . $out
'';
meta = with stdenv.lib; {
homepage = "https://github.com/iwalton3/default-shader-pack";
description = "Preconfigured set of MPV shaders and configurations for MPV Shim media clients";
license = with licenses; [ mit lgpl3Plus unlicense ];
maintainers = with maintainers; [ jojosch ];
};
}