nixpkgs/pkgs/development/tools/fprettify/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
766 B
Nix

{ lib, python3Packages, fetchFromGitHub }:
python3Packages.buildPythonApplication rec {
pname = "fprettify";
version = "0.3.7";
src = fetchFromGitHub {
owner = "pseewald";
repo = pname;
rev = "v${version}";
sha256 = "17v52rylmsy3m3j5fcb972flazykz2rvczqfh8mxvikvd6454zyj";
};
preConfigure = ''
patchShebangs fprettify.py
'';
propagatedBuildInputs = with python3Packages; [
configargparse
];
meta = with lib; {
description = "An 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 ];
};
}