Files
nixpkgs/pkgs/by-name/fp/fprettify/package.nix
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

39 lines
852 B
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "fprettify";
version = "0.3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "pseewald";
repo = "fprettify";
rev = "v${version}";
sha256 = "17v52rylmsy3m3j5fcb972flazykz2rvczqfh8mxvikvd6454zyj";
};
preConfigure = ''
patchShebangs fprettify.py
'';
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
configargparse
];
meta = with lib; {
description = "Auto-formatter for modern Fortran code that imposes strict whitespace formatting, written in Python";
mainProgram = "fprettify";
homepage = "https://pypi.org/project/fprettify/";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fabiangd ];
};
}