1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00

dfmt: init at 1.2.0

A smarter version of fmt, and simpler than par.

The best part (IMO) is that it autodetects beginning-of-line / comment
characters.
This commit is contained in:
Cole Helbling 2021-03-11 17:31:19 -08:00
parent 3ee1fb4f09
commit c5383d6046
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ lib
, python3
}:
let
inherit (python3.pkgs)
buildPythonApplication
fetchPypi
pythonOlder;
in
buildPythonApplication rec {
pname = "dfmt";
version = "1.2.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "7af6360ca8d556f1cfe82b97f03b8d1ea5a9d6de1fa3018290c844b6566d9d6e";
};
meta = with lib; {
description = "Format paragraphs, comments and doc strings";
homepage = "https://github.com/dmerejkowsky/dfmt";
license = licenses.bsd3;
maintainers = with maintainers; [ cole-h ];
};
}

View file

@ -1243,6 +1243,8 @@ in
detect-secrets = python3Packages.callPackage ../development/tools/detect-secrets { };
dfmt = callPackage ../tools/text/dfmt { };
diskonaut = callPackage ../tools/misc/diskonaut { };
diskus = callPackage ../tools/misc/diskus {