mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-22 17:02:25 +01:00
Simon Bruder
eae6c95bb5
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; }; }
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{ 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 LightArrowsEXE’s 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";
|
||
};
|
||
}
|