diff options
Diffstat (limited to 'pkgs/development/python-modules/docformatter/default.nix')
-rw-r--r-- | pkgs/development/python-modules/docformatter/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/docformatter/default.nix b/pkgs/development/python-modules/docformatter/default.nix new file mode 100644 index 00000000000..7c659c4173f --- /dev/null +++ b/pkgs/development/python-modules/docformatter/default.nix @@ -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 ]; + }; +} |