python3Packages.mpv: 1.0.7 -> 1.0.8

This commit was automatically generated using update-python-libraries.
This commit is contained in:
Martin Weinelt
2026-02-01 17:19:35 +01:00
parent 3377bbd1e7
commit 9b91a9c6dd
+18 -16
View File
@@ -3,41 +3,43 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
mpv,
setuptools,
pytestCheckHook,
pyvirtualdisplay,
xorg,
}:
buildPythonPackage rec {
pname = "mpv";
version = "1.0.7";
version = "1.0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "jaseg";
repo = "python-mpv";
rev = "v${version}";
hash = "sha256-2sYWTzj7+ozezNX0uFdJW+A0K6bwAmiVvqo/lr9UToA=";
tag = "v${version}";
hash = "sha256-MHdQnnjxnbOkIf56VLGi7vgNbrjhU/ODUBdZoXjxXxE=";
};
patches = [
# https://github.com/jellyfin/jellyfin-mpv-shim/issues/448
(fetchpatch {
url = "https://github.com/jaseg/python-mpv/commit/12850b34bd3b64704f8abd30341a647a73719267.patch";
hash = "sha256-2O7w8PeWinCzrigGX3IV+9PVCtU9KCM2UJ32Y1kE6m0=";
})
];
nativeBuildInputs = [ setuptools ];
buildInputs = [ mpv ];
postPatch = ''
substituteInPlace mpv.py \
--replace-fail "sofile = ctypes.util.find_library('mpv')" \
'sofile = "${mpv}/lib/libmpv${stdenv.hostPlatform.extensions.sharedLibrary}"'
'';
build-system = [ setuptools ];
buildInputs = [ mpv ];
nativeCheckInputs = [
pytestCheckHook
pyvirtualdisplay
]
++ lib.optionals stdenv.isLinux [
xorg.xvfb
];
pythonImportsCheck = [ "mpv" ];
meta = {