Merge pull request #134423 from FabianGD/init/fprettify

This commit is contained in:
Sandro 2021-08-19 20:23:28 +02:00 committed by GitHub
commit e048056386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 0 deletions

View file

@ -3477,6 +3477,12 @@
fingerprint = "2F6C 930F D3C4 7E38 6AFA 4EB4 E23C D2DD 36A4 397F";
}];
};
fabiangd = {
email = "fabian.g.droege@gmail.com";
name = "Fabian G. Dröge";
github = "FabianGD";
githubId = 40316600;
};
fabianhauser = {
email = "fabian.nixos@fh2.ch";
github = "fabianhauser";

View file

@ -0,0 +1,28 @@
{ 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.";
homepage = "https://pypi.org/project/fprettify/";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fabiangd ];
};
}

View file

@ -13752,6 +13752,8 @@ with pkgs;
foreman = callPackage ../tools/system/foreman { };
goreman = callPackage ../tools/system/goreman { };
fprettify = callPackage ../development/tools/fprettify { };
framac = callPackage ../development/tools/analysis/frama-c { };
frame = callPackage ../development/libraries/frame { };