mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-22 17:02:25 +01:00
vapoursynthPlugins.lvsfunc: unstable-2021-05-15 -> 0.4.2
This version requires python 3.10, which is not yet the default in nixpkgs. To use it, vapoursynth can be overridden to use python310 in an overlay like this: final: prev: { vapoursynth = prev.vapoursynth.override { python3 = prev.python310; }; }
This commit is contained in:
parent
eeceb7e2e4
commit
eae6c95bb5
|
@ -1,4 +1,4 @@
|
||||||
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, rich, toolz, vapoursynth }:
|
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, rich, toolz, vapoursynth, pythonOlder }:
|
||||||
let
|
let
|
||||||
propagatedBinaryPlugins = with vapoursynthPlugins; [
|
propagatedBinaryPlugins = with vapoursynthPlugins; [
|
||||||
adaptivegrain
|
adaptivegrain
|
||||||
|
@ -19,13 +19,13 @@ let
|
||||||
in
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "lvsfunc";
|
pname = "lvsfunc";
|
||||||
version = "unstable-2021-05-15";
|
version = "0.4.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Irrational-Encoding-Wizardry";
|
owner = "Irrational-Encoding-Wizardry";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "76bddb75bc014a47064958beecb13143b8206fa6";
|
rev = "v${version}";
|
||||||
sha256 = "0gvpz9d0lbjvpk8spkfxbmi4s8pqqyjqi8jjvfhfdf3m906v1wh1";
|
sha256 = "sha256-Yv7WBr9suuYsDI9LfZVcTBuDTPkd/DMCk/lQ58qsLyw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -33,10 +33,6 @@ buildPythonPackage rec {
|
||||||
# vapoursynth).
|
# vapoursynth).
|
||||||
substituteInPlace requirements.txt \
|
substituteInPlace requirements.txt \
|
||||||
--replace "VapourSynth>=51" "" \
|
--replace "VapourSynth>=51" "" \
|
||||||
|
|
||||||
# TODO: remove when python 3.9 is default in nixpkgs
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "python_requires='>=3.9'" "python_requires='>=3.8'" \
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -61,5 +57,6 @@ buildPythonPackage rec {
|
||||||
license = licenses.mit; # no license
|
license = licenses.mit; # no license
|
||||||
maintainers = with maintainers; [ sbruder ];
|
maintainers = with maintainers; [ sbruder ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
broken = pythonOlder "3.10";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue