* [bug#46449] [PATCH] gnu: Add python-mistletoe.
@ 2021-02-11 21:36 Ron Nazarov via Guix-patches via
2021-03-05 19:00 ` Ron Nazarov via Guix-patches via
2021-03-07 21:21 ` Ron Nazarov via Guix-patches via
0 siblings, 2 replies; 4+ messages in thread
From: Ron Nazarov via Guix-patches via @ 2021-02-11 21:36 UTC (permalink / raw)
To: 46449; +Cc: Ron Nazarov
* gnu/packages/python-xyz.scm (python-mistletoe): New variable.
---
gnu/packages/python-xyz.scm | 39 ++++++++++++++++++++++++++++++-------
1 file changed, 32 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 783812eb03..69a2f29fcb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -96,6 +96,7 @@
;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2020 EuAndreh <eu@euandre.org>
+;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23745,18 +23746,42 @@ Application Programming Interface based on the Open Inventor 2.1 API.")
(name "python-crayons")
(version "0.4.0")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "crayons" version))
- (sha256
- (base32
- "0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx"))))
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "crayons" version))
+ (sha256
+ (base32
+ "0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx"))))
(build-system python-build-system)
(propagated-inputs
- `(("python-colorama" ,python-colorama)))
+ `(("python-colorama" ,python-colorama)))
(home-page "https://github.com/MasterOdin/crayons")
(synopsis "TextUI colors for Python")
(description "This package gives you colored strings for the terminal.
Crayons automatically wraps a given string in the foreground color and
restores the original state after the string is printed.")
(license license:expat)))
+
+(define-public python-mistletoe
+ (package
+ (name "python-mistletoe")
+ (version "0.7.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mistletoe" version))
+ (sha256
+ (base32
+ "18z6hqfnfjqnrcgfgl5pkj9ggf9yx0yyy94azcn1qf7hqn6g3l14"))))
+ (build-system python-build-system)
+ (home-page
+ "https://github.com/miyuchina/mistletoe")
+ (synopsis
+ "Fast, extensible Markdown parser in pure Python")
+ (description
+ "A CommonMark-compliant Markdown parser
+that supports easy definitions of custom tokens.
+Parsing Markdown into an abstract syntax tree also allows mistletoe
+to swap out renderers for different output formats,
+without touching any of the core components.")
+ (license license:expat)))
--
2.30.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#46449] [PATCH] gnu: Add python-mistletoe.
2021-02-11 21:36 [bug#46449] [PATCH] gnu: Add python-mistletoe Ron Nazarov via Guix-patches via
@ 2021-03-05 19:00 ` Ron Nazarov via Guix-patches via
2021-03-07 21:21 ` Ron Nazarov via Guix-patches via
1 sibling, 0 replies; 4+ messages in thread
From: Ron Nazarov via Guix-patches via @ 2021-03-05 19:00 UTC (permalink / raw)
To: 46449; +Cc: Ron Nazarov
* gnu/packages/python-xyz.scm (python-mistletoe): New variable.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 783812eb03..91d4e343f7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -96,6 +96,7 @@
;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2020 EuAndreh <eu@euandre.org>
+;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23760,3 +23761,24 @@ Application Programming Interface based on the Open Inventor 2.1 API.")
Crayons automatically wraps a given string in the foreground color and
restores the original state after the string is printed.")
(license license:expat)))
+
+(define-public python-mistletoe
+ (package
+ (name "python-mistletoe")
+ (version "0.7.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mistletoe" version))
+ (sha256
+ (base32 "18z6hqfnfjqnrcgfgl5pkj9ggf9yx0yyy94azcn1qf7hqn6g3l14"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/miyuchina/mistletoe")
+ (synopsis "Fast, extensible Markdown parser in pure Python")
+ (description
+ "The @code{mistletoe} Markdown parser is a CommonMark-compliant Markdown parser
+that supports definitions of custom tokens.
+Parsing Markdown into an abstract syntax tree also allows @code{mistletoe}
+to swap out renderers for different output formats,
+without touching any of the core components.")
+ (license license:expat)))
--
2.30.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#46449] [PATCH] gnu: Add python-mistletoe.
2021-02-11 21:36 [bug#46449] [PATCH] gnu: Add python-mistletoe Ron Nazarov via Guix-patches via
2021-03-05 19:00 ` Ron Nazarov via Guix-patches via
@ 2021-03-07 21:21 ` Ron Nazarov via Guix-patches via
2021-03-08 19:01 ` Tobias Geerinckx-Rice via Guix-patches via
1 sibling, 1 reply; 4+ messages in thread
From: Ron Nazarov via Guix-patches via @ 2021-03-07 21:21 UTC (permalink / raw)
To: 46449; +Cc: Ron Nazarov
* gnu/packages/markup.scm (python-mistletoe): New variable.
---
gnu/packages/markup.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index 95a3eb269e..4e0fcdce1c 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 EuAndreh <eu@euandre.org>
+;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -31,6 +32,7 @@
#:use-module (guix build-system trivial)
#:use-module (guix build-system cmake)
#:use-module (guix build-system perl)
+ #:use-module (guix build-system python)
#:use-module (guix utils)
#:use-module (gnu packages compression)
#:use-module (gnu packages)
@@ -300,3 +302,24 @@ and smu is that smu doesn't support reference style links.")
SAX-like interface. It is compliant to the CommonMark specification,
with a few extensions.")
(license expat)))
+
+(define-public python-mistletoe
+ (package
+ (name "python-mistletoe")
+ (version "0.7.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mistletoe" version))
+ (sha256
+ (base32 "18z6hqfnfjqnrcgfgl5pkj9ggf9yx0yyy94azcn1qf7hqn6g3l14"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/miyuchina/mistletoe")
+ (synopsis "Fast, extensible Markdown parser in pure Python")
+ (description
+ "The @code{mistletoe} Markdown parser is a CommonMark-compliant Markdown parser
+that supports definitions of custom tokens.
+Parsing Markdown into an abstract syntax tree also allows @code{mistletoe}
+to swap out renderers for different output formats,
+without touching any of the core components.")
+ (license expat)))
--
2.30.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#46449] [PATCH] gnu: Add python-mistletoe.
2021-03-07 21:21 ` Ron Nazarov via Guix-patches via
@ 2021-03-08 19:01 ` Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 0 replies; 4+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-03-08 19:01 UTC (permalink / raw)
To: Ron Nazarov; +Cc: 46449-done, 46449
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
Toot,
Ron Nazarov via Guix-patches via 写道:
> * gnu/packages/markup.scm (python-mistletoe): New variable.
Thanks! Pushed as 80599a739d04fb1830ee0169256021764784e850, with
minor changes:
> + (synopsis "Fast, extensible Markdown parser in pure
> Python")
^^^^
I removed this, since all software is now fast, light-weight, and
well-written. It's the law or something.
> + (description
I wrapped this to 80 characters.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-08 19:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-11 21:36 [bug#46449] [PATCH] gnu: Add python-mistletoe Ron Nazarov via Guix-patches via
2021-03-05 19:00 ` Ron Nazarov via Guix-patches via
2021-03-07 21:21 ` Ron Nazarov via Guix-patches via
2021-03-08 19:01 ` Tobias Geerinckx-Rice via Guix-patches via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.