From fcdf15ae903cdd77dbd0b2cb31a8210f1a00a8c5 Mon Sep 17 00:00:00 2001 From: thesn10 <38666407+thesn10@users.noreply.github.com> Date: Mon, 9 Nov 2026 12:46:50 +0100 Subject: [PATCH] python3Packages.facenet-pytorch: fix version in setup.py Assisted-by: Claude Code (claude-sonnet-5-5) --- .../development/python-modules/facenet-pytorch/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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 ];