2022-05-26 22:22:43 +02:00
|
|
|
|
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, matplotlib, python, vapoursynth }:
|
2021-01-23 19:52:18 +01:00
|
|
|
|
let
|
|
|
|
|
propagatedBinaryPlugins = with vapoursynthPlugins; [
|
|
|
|
|
descale
|
|
|
|
|
histogram
|
|
|
|
|
median
|
|
|
|
|
tcanny
|
|
|
|
|
];
|
|
|
|
|
in
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "muvsfunc";
|
|
|
|
|
version = "unstable-2020-09-09";
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "WolframRhodium";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "5b5f245f090b6a4de7910ae6168b3ef0e28d2c70";
|
|
|
|
|
sha256 = "1yyqdmlsvz5p07bvfkf48mggz6cdk199ai2pr2apvgcr2pchxc90";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
matplotlib
|
|
|
|
|
] ++ (with vapoursynthPlugins; [
|
|
|
|
|
havsfunc
|
|
|
|
|
mt_lutspa
|
|
|
|
|
mvsfunc
|
|
|
|
|
nnedi3_resample
|
|
|
|
|
]) ++ propagatedBinaryPlugins;
|
|
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
|
install -D muvsfunc.py $out/${python.sitePackages}/muvsfunc.py
|
2021-01-23 19:52:18 +01:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ];
|
|
|
|
|
checkPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
2021-01-23 19:52:18 +01:00
|
|
|
|
'';
|
|
|
|
|
pythonImportsCheck = [ "muvsfunc" ];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Muonium’s VapourSynth functions";
|
|
|
|
|
homepage = "https://github.com/WolframRhodium/muvsfunc";
|
|
|
|
|
license = licenses.unfree; # no license
|
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
};
|
|
|
|
|
}
|