From 1cc8527b64cae597ef0be4e0aa320b1455a5b6b1 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Wed, 12 Nov 2025 05:53:19 +1000 Subject: [PATCH] whatstyle: modernise, update postPatch --- pkgs/development/tools/misc/whatstyle/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/misc/whatstyle/default.nix b/pkgs/development/tools/misc/whatstyle/default.nix index fa1470213238..ca9839c2fedf 100644 --- a/pkgs/development/tools/misc/whatstyle/default.nix +++ b/pkgs/development/tools/misc/whatstyle/default.nix @@ -11,15 +11,15 @@ python3.pkgs.buildPythonApplication rec { format = "setuptools"; src = fetchFromGitHub { owner = "mikr"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-4LCZAEUQFPl4CBPeuqsodiAlwd8uBg+SudF5d+Vz4Gc="; + repo = "whatstyle"; + tag = "v${version}"; + hash = "sha256-4LCZAEUQFPl4CBPeuqsodiAlwd8uBg+SudF5d+Vz4Gc="; }; # Fix references to previous version, to avoid confusion: postPatch = '' - substituteInPlace setup.py --replace 0.1.6 ${version} - substituteInPlace ${pname}.py --replace 0.1.6 ${version} + substituteInPlace setup.py --replace-fail 0.1.6 ${version} + substituteInPlace whatstyle.py --replace-fail 0.1.6 ${version} ''; nativeCheckInputs = [