python3Packages.docformatter: init at 1.4
This commit is contained in:
parent
2c942c0eaf
commit
746256345f
38
pkgs/development/python-modules/docformatter/default.nix
Normal file
38
pkgs/development/python-modules/docformatter/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user