2022-05-27 13:05:56 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, vapoursynth
|
|
|
|
, numpy
|
|
|
|
, poetry
|
|
|
|
, pytorch
|
2022-05-18 22:39:35 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vsgan";
|
|
|
|
version = "1.6.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rlaphoenix";
|
|
|
|
repo = "VSGAN";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-bMgCah3kkyxNU5tb/eLt0tuG4xnD4sbtAzUK0a4uOKE=";
|
|
|
|
};
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2022-05-27 13:05:56 +02:00
|
|
|
poetry
|
2022-05-18 22:39:35 +02:00
|
|
|
pytorch
|
2022-05-27 13:05:56 +02:00
|
|
|
];
|
2022-05-18 22:39:35 +02:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
vapoursynth
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "vsgan" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ESRGAN for VapourSynth";
|
|
|
|
homepage = "https://vsgan.phoeniix.dev/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|