aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--battering/packages/python-xyz.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/battering/packages/python-xyz.scm b/battering/packages/python-xyz.scm
index c7bd357..d3fa0fc 100644
--- a/battering/packages/python-xyz.scm
+++ b/battering/packages/python-xyz.scm
@@ -393,3 +393,36 @@ declarative configuration.")
library's @code{tokenize.untokenize()}, it preserves the original whitespace
between tokens.")
(license license:expat)))
+
+(define-public python-docformatter
+ (package
+ (name "python-docformatter")
+ (version "1.7.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/PyCQA/docformatter")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0szcazklngvn8yi2pl09s7dd858wlfww4df5vic8xh0arqdxwj21"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-charset-normalizer
+ python-tomli
+ python-untokenize))
+ (native-inputs (list python-poetry-core
+ python-pytest
+ python-mock))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'set-virtual-env
+ (lambda _
+ (setenv "VIRTUAL_ENV" #$output))))))
+ (home-page "https://github.com/PyCQA/docformatter")
+ (synopsis "Formats docstrings to follow PEP 257")
+ (description "This package automatically formats docstrings to follow a
+subset of the PEP 257 conventions")
+ (license license:expat)))