python3Packages.mpv: 1.0.7 -> 1.0.8
This commit was automatically generated using update-python-libraries.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user