mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
c5383d6046
A smarter version of fmt, and simpler than par. The best part (IMO) is that it autodetects beginning-of-line / comment characters.
28 lines
570 B
Nix
28 lines
570 B
Nix
{ 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 ];
|
|
};
|
|
}
|