2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dfmt";
|
2021-03-19 17:17:44 +00:00
|
|
|
homepage = "https://github.com/dmerejkowsky/dfmt";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ cole-h ];
|
|
|
|
};
|
|
|
|
}
|