vs-overlay/plugins/nnedi3_resample/default.nix
Simon Bruder eeceb7e2e4 vapoursynthPlugins: allow override of python version
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.
2022-05-27 22:27:20 +02:00

40 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
buildPythonPackage rec {
pname = "nnedi3_resample";
version = "unstable-2017-05-10";
src = fetchFromGitHub {
owner = "mawen1250";
repo = "VapourSynth-script";
rev = "0983895c8a0fe65d8b342e1875294d2681c75e84";
sha256 = "1c6z1xi2lvjjf7n22l5w1yw2fqh3mh2k600v65bnc50192i8zhnd";
};
propagatedBuildInputs = with vapoursynthPlugins; [
fmtconv
mvsfunc
nnedi3
];
format = "other";
installPhase = ''
install -D nnedi3_resample.py $out/${python.sitePackages}/nnedi3_resample.py
'';
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
checkPhase = ''
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
pythonImportsCheck = [ "nnedi3_resample" ];
meta = with lib; {
description = "A vapoursynth plugin for resampling with nnedi3";
homepage = "https://github.com/mawen1250/VapourSynth-script";
license = licenses.unfree; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}