Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, python3Packages, fetchFromGitHub }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "fprettify"; 5 version = "0.3.7"; 6 7 src = fetchFromGitHub { 8 owner = "pseewald"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "17v52rylmsy3m3j5fcb972flazykz2rvczqfh8mxvikvd6454zyj"; 12 }; 13 14 preConfigure = '' 15 patchShebangs fprettify.py 16 ''; 17 18 propagatedBuildInputs = with python3Packages; [ 19 configargparse 20 ]; 21 22 meta = with lib; { 23 description = "An auto-formatter for modern Fortran code that imposes strict whitespace formatting, written in Python."; 24 homepage = "https://pypi.org/project/fprettify/"; 25 license = with licenses; [ gpl3Only ]; 26 maintainers = with maintainers; [ fabiangd ]; 27 }; 28}