Subject: [bug#51675] [PATCH v2 4/5] gnu: Add python-towncrier.

From: Stephen Paul Weber <[email-masked]>
Date: Sat, 13 Nov 2021 20:50:30 -0500

* gnu/packages/python-xyz.scm (python-towncrier): New variable.
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1383406885..7e13a296ab 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27728,3 +27728,29 @@ hierarchies and, as it aims at documenting Twisted, knows about zope.interface's
 declaration API and can present information about which classes implement which
 interface, and vice versa.")
     (license license:expat)))
+
+(define-public python-towncrier
+  (package
+    (name "python-towncrier")
+    (version "21.3.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "towncrier" version))
+        (sha256
+          (base32 "1znxavwsiy6czirjn0qi1p5yarnm7gg692nb0309hb6p4k4hpvbf"))))
+    (build-system python-build-system)
+    (inputs
+      `(("python-click" ,python-click)
+        ("python-click-default-group" ,python-click-default-group)
+        ("python-incremental" ,python-incremental)
+        ("python-jinja2" ,python-jinja2)
+        ("python-toml" ,python-toml)))
+    (native-inputs `(("python-packaging" ,python-packaging)))
+    (home-page "https://github.com/twisted/towncrier")
+    (synopsis "Tool to build newsfiles for your Python project")
+    (description "Towncrier is a utility to produce useful, summarised news
+files for your project.  Rather than reading the Git history as some newer
+tools to produce it, or having one single file which developers all write to,
+towncrier reads \"news fragments\" which contain information useful to end users.")
+    (license license:expat)))
-- 
2.30.2