New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jellyfin-mpv-shim: init at 1.4.1 #81817
Conversation
Yes |
export HOME=$TMPDIR | ||
''; | ||
|
||
propagatedBuildInputs = [ mpv python-mpv-jsonipc jellyfin-apiclient-python ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use 1 entry per line and order alphabetically. Also add pillow and tkinter, which are needed by executable
propagatedBuildInputs = [ mpv python-mpv-jsonipc jellyfin-apiclient-python ]; | |
propagatedBuildInputs = [ | |
jellyfin-apiclient-python | |
mpv | |
pillow | |
python-mpv-jsonipc | |
tkinter | |
]; |
still might not work right:
Traceback (most recent call last):
File "/nix/store/fara2bdicvvi0p8bmrgcz6s8d6yicijc-python3-3.7.6/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/nix/store/p4jgrxxkkx7n5q92m32fpgc24p602r9k-jellyfin-mpv-shim-1.4.1/lib/python3.7/site-packages/jellyfin_mpv_shim/gui_mgr.py", line 380, in run
from pystray import Icon, MenuItem, Menu
ModuleNotFoundError: No module named 'pystray'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added and reordered the buildInputs.
I based this one on the plex-mpv-shim (#77884) which is also missing the GUI functionality:
[ WARNING] Cannot load GUI. Falling back to command line interface.
Traceback (most recent call last):
File "/nix/store/faddcn3zaqj0q6zcanf6h6lglbp97dhm-plex-mpv-shim-1.7.12/lib/python3.7/site-packages/plex_mpv_shim/mpv_shim.py", line 39, in main
from .gui_mgr import userInterface
File "/nix/store/faddcn3zaqj0q6zcanf6h6lglbp97dhm-plex-mpv-shim-1.7.12/lib/python3.7/site-packages/plex_mpv_shim/gui_mgr.py", line 1, in <module>
from pystray import Icon, MenuItem, Menu
ModuleNotFoundError: No module named 'pystray'
I will try to package the missing dependencies to enable the GUI.
b342c10
to
a193332
Compare
a193332
to
c3e690f
Compare
checkPhase = '' | ||
# error: [Errno 13] Permission denied: '/homeless-shelter' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments should try to stay outside of hooks. changing a comment inside of code will cause a rebuild.
checkPhase = '' | |
# error: [Errno 13] Permission denied: '/homeless-shelter' | |
# error: [Errno 13] Permission denied: '/homeless-shelter' | |
checkPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved the comment outside of the hook
sha256 = "0bii85b08fa6sj57x9l8z5rhwlrz36mhf7nck950wzxfgkid2fdv"; | ||
}; | ||
|
||
checkPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alos, this will overwrite the normal checkPhase, so no tests are actually being ran
checkPhase = '' | |
preCheck = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
c3e690f
to
cd39e29
Compare
I added But this is currently not working, because Without |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff LGTM
commits LGTM
application opens fine
[7 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/81817
12 package built:
jellyfin-mpv-shim plex-mpv-shim python27Packages.pystray python27Packages.pywebview python37Packages.jellyfin-apiclient-python python37Packages.pystray python37Packages.python-mpv-jsonipc python37Packages.pywebview python38Packages.jellyfin-apiclient-python python38Packages.pystray python38Packages.python-mpv-jsonipc python38Packages.pywebview
When I install and run
|
this is for the jellyfin package, and the issue is with the plex-mpv-shim package please open an issue |
Whoops, sorry @jonringer, I got my tabs mixed up. |
Motivation for this change
Tested using Jellyfin 10.4.3 and mpv 0.32.0 under sway 1.4.
Needed to update python-mpv-jsonipc to 1.1.7 and added jellyfin-apiclient-python at 1.4.0.
When running the checks a
[Errno 13] Permission denied: '/homeless-shelter'
error occurs. I grepped in nixpkgs where other packages just setHOME=$TMPDIR
- is this acceptable?Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)