whatstyle: modernise, update postPatch

This commit is contained in:
kashw2
2026-01-17 01:51:40 +10:00
parent ad9655a1c1
commit 1cc8527b64
@@ -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 = [