vs-overlay/plugins/lvsfunc/default.nix
Simon Bruder eae6c95bb5 vapoursynthPlugins.lvsfunc: unstable-2021-05-15 -> 0.4.2
This version requires python 3.10, which is not yet the default in
nixpkgs. To use it, vapoursynth can be overridden to use python310 in an
overlay like this:

    final: prev: {
      vapoursynth = prev.vapoursynth.override { python3 = prev.python310; };
    }
2022-05-27 22:27:20 +02:00

63 lines
1.4 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, rich, toolz, vapoursynth, pythonOlder }:
let
propagatedBinaryPlugins = with vapoursynthPlugins; [
adaptivegrain
combmask
continuityfixer
d2vsource
descale
eedi3m
fmtconv
knlmeanscl
nnedi3
readmpls
retinex
#rgsf
tcanny
znedi3
];
in
buildPythonPackage rec {
pname = "lvsfunc";
version = "0.4.2";
src = fetchFromGitHub {
owner = "Irrational-Encoding-Wizardry";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Yv7WBr9suuYsDI9LfZVcTBuDTPkd/DMCk/lQ58qsLyw=";
};
postPatch = ''
# This does not depend on vapoursynth (since this is used from within
# vapoursynth).
substituteInPlace requirements.txt \
--replace "VapourSynth>=51" "" \
'';
propagatedBuildInputs = [
rich
toolz
] ++ (with vapoursynthPlugins; [
debandshit
edi_rpow2
havsfunc
kagefunc
mvsfunc
vsTAAmbk
vsutil
]);
checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ];
pythonImportsCheck = [ "lvsfunc" ];
meta = with lib; {
description = "A collection of LightArrowsEXEs VapourSynth functions and wrappers";
homepage = "https://lvsfunc.readthedocs.io";
license = licenses.mit; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
broken = pythonOlder "3.10";
};
}