Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
954 B
Nix

{
lib,
python3,
fetchFromGitHub,
clang-unwrapped,
}:
python3.pkgs.buildPythonApplication rec {
pname = "whatstyle";
version = "0.2.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "mikr";
repo = pname;
rev = "v${version}";
sha256 = "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}
'';
nativeCheckInputs = [
clang-unwrapped # clang-format
];
doCheck = false; # 3 or 4 failures depending on version, haven't investigated.
meta = with lib; {
description = "Find a code format style that fits given source files";
mainProgram = "whatstyle";
homepage = "https://github.com/mikr/whatstyle";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.all;
};
}