diff --git a/pkgs/development/python-modules/facenet-pytorch/default.nix b/pkgs/development/python-modules/facenet-pytorch/default.nix index fd3faa8b2a65..2c75920445df 100644 --- a/pkgs/development/python-modules/facenet-pytorch/default.nix +++ b/pkgs/development/python-modules/facenet-pytorch/default.nix @@ -24,6 +24,13 @@ buildPythonPackage (finalAttrs: { hash = "sha256-3YVyqKgVLD5aePwyVQA8kOiqx32kqg9lxU2uwPWGkCU="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace-fail \ + "VERSION = '2.5.2'" \ + "VERSION = '${finalAttrs.version}'" + ''; + build-system = [ setuptools ];