jellyfin-mpv-shim: Clean up
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
python,
|
||||
python-mpv-jsonipc,
|
||||
pywebview,
|
||||
setuptools,
|
||||
tkinter,
|
||||
wrapGAppsHook3,
|
||||
}:
|
||||
@@ -20,7 +21,7 @@
|
||||
buildPythonApplication rec {
|
||||
pname = "jellyfin-mpv-shim";
|
||||
version = "2.9.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
@@ -33,7 +34,9 @@ buildPythonApplication rec {
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
jellyfin-apiclient-python
|
||||
mpv
|
||||
pillow
|
||||
@@ -61,12 +64,12 @@ buildPythonApplication rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace jellyfin_mpv_shim/conf.py \
|
||||
--replace "check_updates: bool = True" "check_updates: bool = False" \
|
||||
--replace "notify_updates: bool = True" "notify_updates: bool = False"
|
||||
--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 \
|
||||
--replace "python-mpv" "mpv" \
|
||||
--replace "mpv-jsonipc" "python_mpv_jsonipc"
|
||||
--replace-fail "python-mpv" "mpv" \
|
||||
--replace-fail "mpv-jsonipc" "python_mpv_jsonipc"
|
||||
'';
|
||||
|
||||
# Install all the icons for the desktop item
|
||||
@@ -84,8 +87,6 @@ buildPythonApplication rec {
|
||||
'';
|
||||
dontWrapGApps = true;
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "jellyfin_mpv_shim" ];
|
||||
|
||||
desktopItems = [
|
||||
@@ -113,6 +114,7 @@ buildPythonApplication rec {
|
||||
to prevent needless transcoding of your media files on the server. The player also has
|
||||
advanced features, such as bulk subtitle updates and launching commands on events.
|
||||
'';
|
||||
changelog = "https://github.com/jellyfin/jellyfin-mpv-shim/releases/tag/v${version}";
|
||||
license = with lib.licenses; [
|
||||
# jellyfin-mpv-shim
|
||||
gpl3Only
|
||||
|
||||
Reference in New Issue
Block a user