mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-16 14:12:26 +01:00
Simon Bruder
eeceb7e2e4
When overriding the python3 dependency of vapoursynth, it should get propagated to all plugins. Currently, however, this causes incompatibilities, because `vapoursynth.python3.callPackage` only sets the `python` attribute, not `python3`. This currently causes build failures due to different site-packages paths.
39 lines
994 B
Nix
39 lines
994 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "mvsfunc";
|
||
version = "r10";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "HomeOfVapourSynthEvolution";
|
||
repo = pname;
|
||
rev = version;
|
||
sha256 = "sha256-J68NMBE3MdAd9P0UJH32o0YwQx+7I5+13j8Jc5rbQtc=";
|
||
};
|
||
|
||
propagatedBuildInputs = with vapoursynthPlugins; [
|
||
bm3d
|
||
fmtconv
|
||
];
|
||
|
||
format = "other";
|
||
|
||
installPhase = ''
|
||
install -D mvsfunc.py $out/${python.sitePackages}/mvsfunc.py
|
||
'';
|
||
|
||
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
||
checkPhase = ''
|
||
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
||
'';
|
||
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;
|
||
};
|
||
}
|