Merge pull request #134423 from FabianGD/init/fprettify
This commit is contained in:
commit
e048056386
3 changed files with 36 additions and 0 deletions
|
@ -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";
|
||||
|
|
28
pkgs/development/tools/fprettify/default.nix
Normal file
28
pkgs/development/tools/fprettify/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue