mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-15 05:32:26 +01:00
Simon Bruder
3ac96a0fb0
This is done to mirror what is done in nixpkgs (https://github.com/NixOS/nixpkgs/pull/170414).
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "havsfunc";
|
||
version = "33";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "HomeOfVapourSynthEvolution";
|
||
repo = pname;
|
||
rev = "r${version}";
|
||
sha256 = "14132gcy0zw348c40y2i8c7n3i1ygcnv9xrf83jp6m3b9v557z7p";
|
||
};
|
||
|
||
propagatedBuildInputs = with vapoursynthPlugins; [
|
||
addgrain
|
||
adjust
|
||
bm3d
|
||
cas
|
||
ctmf
|
||
dctfilter
|
||
deblock
|
||
dfttest
|
||
eedi2
|
||
eedi3m
|
||
fft3dfilter
|
||
fluxsmooth
|
||
fmtconv
|
||
fmtconv
|
||
hqdn3d
|
||
knlmeanscl
|
||
miscfilters-obsolete
|
||
mvsfunc
|
||
mvtools
|
||
nnedi3
|
||
nnedi3cl
|
||
sangnom
|
||
ttempsmooth
|
||
znedi3
|
||
];
|
||
|
||
format = "other";
|
||
|
||
installPhase = ''
|
||
install -D havsfunc.py $out/${python.sitePackages}/havsfunc.py
|
||
'';
|
||
|
||
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
||
checkPhase = ''
|
||
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
||
'';
|
||
pythonImportsCheck = [ "havsfunc" ];
|
||
|
||
meta = with lib; {
|
||
description = "Holy’s ported AviSynth functions for VapourSynth";
|
||
homepage = "https://github.com/HomeOfVapourSynthEvolution/havsfunc";
|
||
license = licenses.unfree; # no license
|
||
maintainers = with maintainers; [ sbruder ];
|
||
platforms = platforms.all;
|
||
};
|
||
}
|