2022-05-26 22:22:43 +02:00
|
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
2021-01-23 18:40:44 +01:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "mvsfunc";
|
2022-05-27 22:44:08 +02:00
|
|
|
|
version = "10";
|
2021-01-23 18:40:44 +01:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
|
|
|
repo = pname;
|
2022-05-27 22:44:08 +02:00
|
|
|
|
rev = "r${version}";
|
2021-10-15 18:54:52 +02:00
|
|
|
|
sha256 = "sha256-J68NMBE3MdAd9P0UJH32o0YwQx+7I5+13j8Jc5rbQtc=";
|
2021-01-23 18:40:44 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = with vapoursynthPlugins; [
|
|
|
|
|
bm3d
|
|
|
|
|
fmtconv
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
|
install -D mvsfunc.py $out/${python.sitePackages}/mvsfunc.py
|
2021-01-23 18:40:44 +01:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
|
|
|
|
checkPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
2021-01-23 18:40:44 +01:00
|
|
|
|
'';
|
|
|
|
|
pythonImportsCheck = [ "mvsfunc" ];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "mawen1250’s VapourSynth functions";
|
|
|
|
|
homepage = "https://github.com/HomeOfVapourSynthEvolution/mvsfunc";
|
|
|
|
|
license = licenses.unfree; # no license
|
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
};
|
|
|
|
|
}
|