1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "fprettify";
9 version = "0.3.7";
10 format = "pyproject";
11
12 src = fetchFromGitHub {
13 owner = "pseewald";
14 repo = "fprettify";
15 rev = "v${version}";
16 sha256 = "17v52rylmsy3m3j5fcb972flazykz2rvczqfh8mxvikvd6454zyj";
17 };
18
19 preConfigure = ''
20 patchShebangs fprettify.py
21 '';
22
23 build-system = with python3Packages; [
24 setuptools
25 ];
26
27 dependencies = with python3Packages; [
28 configargparse
29 ];
30
31 meta = with lib; {
32 description = "Auto-formatter for modern Fortran code that imposes strict whitespace formatting, written in Python";
33 mainProgram = "fprettify";
34 homepage = "https://pypi.org/project/fprettify/";
35 license = with licenses; [ gpl3Only ];
36 maintainers = with maintainers; [ fabiangd ];
37 };
38}