vs-overlay/plugins/mvsfunc/default.nix

39 lines
997 B
Nix
Raw 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, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python3, vapoursynth }:
buildPythonPackage rec {
pname = "mvsfunc";
version = "r8";
src = fetchFromGitHub {
owner = "HomeOfVapourSynthEvolution";
repo = pname;
rev = version;
sha256 = "0y5whczp3skbfbv9ajizddpg2k8hxiiy339gkqhiqby7zlbnvdw2";
};
propagatedBuildInputs = with vapoursynthPlugins; [
bm3d
fmtconv
];
format = "other";
installPhase = ''
install -D mvsfunc.py $out/${python3.sitePackages}/mvsfunc.py
'';
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
checkPhase = ''
PYTHONPATH=$out/${python3.sitePackages}:$PYTHONPATH
'';
pythonImportsCheck = [ "mvsfunc" ];
meta = with lib; {
description = "mawen1250s VapourSynth functions";
homepage = "https://github.com/HomeOfVapourSynthEvolution/mvsfunc";
license = licenses.unfree; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}