aboutsummaryrefslogtreecommitdiff
path: root/battering/packages/python-xyz.scm
diff options
context:
space:
mode:
authorHanketsu <hanketsu@egregore.fun>2025-02-28 11:34:24 +0100
committerHanketsu <hanketsu@egregore.fun>2025-06-13 00:04:35 +0200
commitf14decb08615a735ee2192eae73d80a26fa4d6ee (patch)
tree6cb8b3691461d4f6feb2bc147623fce41b6e3aa9 /battering/packages/python-xyz.scm
parentc7f225ff0b04fbe90532563692c7e6bd51ebdb06 (diff)
battering: Add python-docformatter.
* battering/packages/python-xyz.scm (python-docformatter): New variable.
Diffstat (limited to 'battering/packages/python-xyz.scm')
-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)))