Merge pull request #94654 from jojosch/jellyfin-mpv-shim_1.6.0
jellyfin-mpv-shim: 1.5.11 -> 1.7.1
This commit is contained in:
commit
421b2a04b0
@ -1,19 +1,27 @@
|
|||||||
{ stdenv, buildPythonApplication, fetchFromGitHub, fetchurl
|
{ stdenv, buildPythonApplication, fetchFromGitHub, callPackage
|
||||||
, mpv, python-mpv-jsonipc, jellyfin-apiclient-python
|
, mpv, python-mpv-jsonipc, jellyfin-apiclient-python
|
||||||
, pillow, tkinter, pystray, jinja2, pywebview }:
|
, pillow, tkinter, pystray, jinja2, pywebview }:
|
||||||
|
|
||||||
|
let
|
||||||
|
shaderPack = callPackage ./shader-pack.nix {};
|
||||||
|
in
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "jellyfin-mpv-shim";
|
pname = "jellyfin-mpv-shim";
|
||||||
version = "1.5.11";
|
version = "1.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "iwalton3";
|
owner = "iwalton3";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "14hm8yccdp7w1vdnvdzafk1byhaq1qsr33i4962s1nvm9lafxkr7";
|
sha256 = "0alrh5h3f8pq9mrq09jmpqa0yslxsjqwij6kwn24ggbwc10zkq75";
|
||||||
fetchSubmodules = true; # needed for display_mirror css file
|
fetchSubmodules = true; # needed for display_mirror css file
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./disable-desktop-client.patch
|
||||||
|
./disable-update-check.patch
|
||||||
|
];
|
||||||
|
|
||||||
# override $HOME directory:
|
# override $HOME directory:
|
||||||
# error: [Errno 13] Permission denied: '/homeless-shelter'
|
# error: [Errno 13] Permission denied: '/homeless-shelter'
|
||||||
#
|
#
|
||||||
@ -25,10 +33,9 @@ buildPythonApplication rec {
|
|||||||
rm jellyfin_mpv_shim/win_utils.py
|
rm jellyfin_mpv_shim/win_utils.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# disable the desktop client for now
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
# link the default shader pack
|
||||||
--replace "'jellyfin-mpv-desktop=jellyfin_mpv_shim.mpv_shim:main_desktop'," ""
|
ln -s ${shaderPack} jellyfin_mpv_shim/default_shader_pack
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -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=[
|
@ -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,
|
||||||
|
}
|
25
pkgs/applications/video/jellyfin-mpv-shim/shader-pack.nix
Normal file
25
pkgs/applications/video/jellyfin-mpv-shim/shader-pack.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jellyfin-apiclient-python";
|
pname = "jellyfin-apiclient-python";
|
||||||
version = "1.5.1";
|
version = "1.6.1";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "iwalton3";
|
owner = "iwalton3";
|
||||||
repo = "jellyfin-apiclient-python";
|
repo = "jellyfin-apiclient-python";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1mzs4i9c4cf7pmymsyzs8x17hvjs8g9wr046l4f85rkzmz23v1rp";
|
sha256 = "0f7czq83ic22fz1vnf0cavb7l3grcxxd5yyw9wcjz3g1j2d76735";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests websocket_client ];
|
propagatedBuildInputs = [ requests websocket_client ];
|
||||||
|
Loading…
Reference in New Issue
Block a user