vs-overlay/plugins/vsgan/default.nix
Aidan Gauland 8f28d94d65 Fix vsgan poetry dependency
After a recent poetry update in nixpkgs, we need to depend upon poetry-core instead.
2023-11-19 08:05:20 +13:00

43 lines
733 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, vapoursynth
, numpy
, poetry-core
, pytorch
}:
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
poetry-core
pytorch
];
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;
};
}