about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/dfmt/default.nix
blob: c31335e560f1ad6272c18cb0ee712e63e1fa61d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, python3
, fetchPypi
}:

let
  inherit (python3.pkgs)
    buildPythonApplication
    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";
    mainProgram = "dfmt";
    homepage = "https://github.com/dmerejkowsky/dfmt";
    license = licenses.bsd3;
    maintainers = with maintainers; [ cole-h ];
  };
}