jellyfin-mpv-shim: 2.9.0 -> 2.10.0, minor cleanup (#537200)
This commit is contained in:
@@ -10,12 +10,14 @@
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "jellyfin-mpv-shim";
|
||||
version = "2.9.0";
|
||||
version = "2.10.0";
|
||||
pyproject = true;
|
||||
|
||||
# contains shaderpacks
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-YrwMvP66LAWKgx/yWBkWIkZtJ4a0YnhCiL7xB6fGm0E=";
|
||||
pname = "jellyfin_mpv_shim";
|
||||
inherit version;
|
||||
hash = "sha256-ZWmJQJAGAonStZyWww4P+034f2vGnTwLua7KUOqoBBE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -29,29 +31,23 @@ python3Packages.buildPythonApplication rec {
|
||||
dependencies = with python3Packages; [
|
||||
jellyfin-apiclient-python
|
||||
mpv
|
||||
pillow
|
||||
python-mpv-jsonipc
|
||||
requests
|
||||
|
||||
# gui dependencies
|
||||
# gui + mirror dependencies
|
||||
pillow
|
||||
pystray
|
||||
tkinter
|
||||
|
||||
# display_mirror dependencies
|
||||
jinja2
|
||||
pywebview
|
||||
|
||||
# discord rich presence dependency
|
||||
pypresence
|
||||
];
|
||||
|
||||
# override $HOME directory:
|
||||
# error: [Errno 13] Permission denied: '/homeless-shelter'
|
||||
#
|
||||
# remove jellyfin_mpv_shim/win_utils.py:
|
||||
# ModuleNotFoundError: No module named 'win32gui'
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
|
||||
# remove jellyfin_mpv_shim/win_utils.py:
|
||||
# ModuleNotFoundError: No module named 'win32gui'
|
||||
rm jellyfin_mpv_shim/win_utils.py
|
||||
'';
|
||||
|
||||
@@ -60,7 +56,7 @@ python3Packages.buildPythonApplication rec {
|
||||
--replace-fail "check_updates: bool = True" "check_updates: bool = False" \
|
||||
--replace-fail "notify_updates: bool = True" "notify_updates: bool = False"
|
||||
# python-mpv renamed to mpv with 1.0.4
|
||||
substituteInPlace setup.py \
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "python-mpv" "mpv" \
|
||||
--replace-fail "mpv-jsonipc" "python_mpv_jsonipc"
|
||||
'';
|
||||
@@ -70,7 +66,7 @@ python3Packages.buildPythonApplication rec {
|
||||
for s in 16 32 48 64 128 256; do
|
||||
mkdir -p $out/share/icons/hicolor/''${s}x''${s}/apps
|
||||
ln -s $out/${python3Packages.python.sitePackages}/jellyfin_mpv_shim/integration/jellyfin-''${s}.png \
|
||||
$out/share/icons/hicolor/''${s}x''${s}/apps/${pname}.png
|
||||
$out/share/icons/hicolor/''${s}x''${s}/apps/jellyfin-mpv-shim.png
|
||||
done
|
||||
'';
|
||||
|
||||
@@ -84,9 +80,9 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = pname;
|
||||
exec = pname;
|
||||
icon = pname;
|
||||
name = "jellyfin-mpv-shim";
|
||||
exec = "jellyfin-mpv-shim";
|
||||
icon = "jellyfin-mpv-shim";
|
||||
desktopName = "Jellyfin MPV Shim";
|
||||
categories = [
|
||||
"Video"
|
||||
@@ -123,5 +119,6 @@ python3Packages.buildPythonApplication rec {
|
||||
];
|
||||
maintainers = with lib.maintainers; [ jojosch ];
|
||||
mainProgram = "jellyfin-mpv-shim";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,38 +2,32 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
requests,
|
||||
tqdm,
|
||||
websocket-client,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "python-mpv-jsonipc";
|
||||
version = "1.2.1";
|
||||
format = "setuptools";
|
||||
version = "1.2.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iwalton3";
|
||||
repo = "python-mpv-jsonipc";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ugdLUmo5w+IbtmL2b6+la1X01mWNmnXr9j6e99oPWpE=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-9QfGsJW08YqATP4+G3bADkjxHoauSF7BmcsIi56fBKI=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
# 'mpv-jsonipc' does not have any tests
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
tqdm
|
||||
websocket-client
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "python_mpv_jsonipc" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/iwalton3/python-mpv-jsonipc";
|
||||
description = "Python API to MPV using JSON IPC";
|
||||
license = lib.licenses.gpl3;
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user