diff --git a/plugins/mt_lutspa/0001-Use-vs.core-instead-of-vs.get_core.patch b/plugins/mt_lutspa/0001-Use-vs.core-instead-of-vs.get_core.patch new file mode 100644 index 0000000..b4ed5a2 --- /dev/null +++ b/plugins/mt_lutspa/0001-Use-vs.core-instead-of-vs.get_core.patch @@ -0,0 +1,30 @@ +From 6c741ced6ad6b509bde7d6a365c8981539d211f5 Mon Sep 17 00:00:00 2001 +From: Simon Bruder +Date: Tue, 12 Oct 2021 21:31:39 +0200 +Subject: [PATCH] Use vs.core instead of vs.get_core() + +It has been deprecated since R51 and was entirely removed in R55. +--- + mt_lutspa.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/mt_lutspa.py b/mt_lutspa.py +index d5a51dc..d6a1d85 100644 +--- a/mt_lutspa.py ++++ b/mt_lutspa.py +@@ -237,10 +237,10 @@ def lutspa(clip, mode="relative", relative=True, biased=True, expr="x", + + return frame + +- return vs.get_core().std.ModifyFrame(clip, clip, lutspa_core) ++ return vs.core.std.ModifyFrame(clip, clip, lutspa_core) + + +-core = vs.get_core() ++core = vs.core + blank = core.std.BlankClip(width=848, height=480, length=250, format=vs.YUV420P8) + out = lutspa(blank, mode="relative", y_expr="x 0.5 > x 255 * y 255 * &u x y max 255 * ?", + expr="x 255 * y 255 * &u 112 max 144 min", +-- +2.31.1 + diff --git a/plugins/mt_lutspa/default.nix b/plugins/mt_lutspa/default.nix index 03f2171..03cef5a 100644 --- a/plugins/mt_lutspa/default.nix +++ b/plugins/mt_lutspa/default.nix @@ -10,6 +10,10 @@ buildPythonPackage rec { sha256 = "0szws6fcrcgdn31szhrmglpl2kglrglx1bgxd0bjl3r51bxiry12"; }; + patches = [ + ./0001-Use-vs.core-instead-of-vs.get_core.patch + ]; + propagatedBuildInputs = [ numpy ];