From 1ea595e9a66415488c169d0efce5f9b476dfbc86 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 4 Aug 2026 08:56:03 +0000 Subject: [PATCH] python3Packages.tensorflow-datasets: fix build --- .../python-modules/tensorflow-datasets/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/tensorflow-datasets/default.nix b/pkgs/development/python-modules/tensorflow-datasets/default.nix index 5191764018e8..c167088916eb 100644 --- a/pkgs/development/python-modules/tensorflow-datasets/default.nix +++ b/pkgs/development/python-modules/tensorflow-datasets/default.nix @@ -75,6 +75,13 @@ buildPythonPackage (finalAttrs: { hash = "sha256-nq0c5hBTVwkxCRvWxtnfI+AHD+URY+nNfZAurEGaLXk="; }; + postPatch = + # The git checkout ships the development `version.py`, which appends a `+nightly` suffix. + # Upstream replaces it with `version_stable.py` for stable releases. + '' + cp tensorflow_datasets/version_stable.py tensorflow_datasets/version.py + ''; + build-system = [ packaging setuptools