python3Packages.docformatter: init at 1.4

This commit is contained in:
Robert Schütz 2022-05-26 18:26:27 +00:00
parent 2c942c0eaf
commit 746256345f
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, untokenize
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "docformatter";
version = "1.4";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "064e6d81f04ac96bc0d176cbaae953a0332482b22d3ad70d47c8a7f2732eef6f";
};
propagatedBuildInputs = [
untokenize
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "docformatter" ];
meta = {
description = "Formats docstrings to follow PEP 257";
homepage = "https://github.com/myint/docformatter";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -2478,6 +2478,8 @@ in {
doc8 = callPackage ../development/python-modules/doc8 { };
docformatter = callPackage ../development/python-modules/docformatter { };
docker = callPackage ../development/python-modules/docker { };
dockerfile-parse = callPackage ../development/python-modules/dockerfile-parse { };