summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-05-10 18:08:18 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-05-10 19:27:08 +0200
commite171a8bd889fd0420f8171ef4e5cbf1fadf1cd58 (patch)
treee09848fd264a26d397333c3f992263ec9b5ecc7b
parent2ebd5b9adf832f64a78926d42e9a36296ea7e570 (diff)
gnu: Add python-docstring-parser.
* gnu/packages/python-xyz.scm (python-docstring-parser): New variable.
-rw-r--r--gnu/packages/python-xyz.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0753c42ff3..772de8fc78 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5299,6 +5299,24 @@ which only supports flat sequences, and allows you to apply a function to each
leaf preserving the overall structure.")
(license license:asl2.0)))
+(define-public python-docstring-parser
+ (package
+ (name "python-docstring-parser")
+ (version "0.15")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "docstring_parser" version))
+ (sha256
+ (base32
+ "10pnbg2q0ic1h6pwbyhhqd075fv67sq07k3gjncmi1mix29w1pa8"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-poetry-core python-pytest))
+ (home-page "https://github.com/rr-/docstring_parser")
+ (synopsis "Parse Python docstrings in reST, Google and Numpydoc format")
+ (description "This package lets you parse Python docstrings in reST,
+Google and Numpydoc format.")
+ (license license:expat)))
+
(define-public python-docutils
(package
(name "python-docutils")