GNU bug report logs -
#47548
[PATCH 1/2] gnu: Add python-smartypants.
Previous Next
Reported by: iyzsong <at> outlook.com
Date: Thu, 1 Apr 2021 15:04:02 UTC
Severity: normal
Tags: patch
Done: 宋文武 <iyzsong <at> outlook.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47548 in the body.
You can then email your comments to 47548 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#47548
; Package
guix-patches
.
(Thu, 01 Apr 2021 15:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
iyzsong <at> outlook.com
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 01 Apr 2021 15:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: 宋文武 <iyzsong <at> member.fsf.org>
* gnu/packages/python-xyz.scm (python-smartypants): New variable.
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dac857a83d..dfce35a212 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24331,3 +24331,44 @@ number of words, syllables, and sentences.")
"This package provides a Python library that can parse OPML, FOAF, and
iGoogle subscription lists.")
(license license:expat)))
+
+(define-public python-smartypants
+ (package
+ (name "python-smartypants")
+ (version "2.0.1")
+ (source
+ (origin
+ ;; There's no source tarball for 2.0.1 on PyPI.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/leohemsted/smartypants.py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ ;; Its `setup.py test` doesn't report failure with exit status, so
+ ;; we use `nose` instead.
+ (lambda _
+ (invoke "nosetests" "-v" "--exclude=^load_tests$"))))))
+ (native-inputs
+ ;; For tests.
+ `(("python-docutils" ,python-docutils)
+ ("python-nose" ,python-nose)
+ ("python-pygments" ,python-pygments)))
+ (home-page "https://github.com/leohemsted/smartypants.py")
+ (synopsis "Translate punctuation characters into smart quotes")
+ (description
+ "@command{smartpants} can perform the following transformations:
+@enumerate
+@item Straight quotes ( \" and ' ) into \"curly\" quote HTML entities
+@item Backticks-style quotes (``like this'') into \"curly\" quote HTML
+entities
+@item Dashes (-- and ---) into en- and em-dash entities
+@item Three consecutive dots (... or . . .) into an ellipsis entity
+@end enumerate")
+ (license license:bsd-3)))
--
2.30.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#47548
; Package
guix-patches
.
(Thu, 01 Apr 2021 20:20:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 47548 <at> debbugs.gnu.org (full text, mbox):
On Thu, Apr 01, 2021 at 10:50:47PM +0800, iyzsong <at> outlook.com wrote:
> From: 宋文武 <iyzsong <at> member.fsf.org>
>
> * gnu/packages/python-xyz.scm (python-smartypants): New variable.
LGTM, thanks!
Reply sent
to
宋文武 <iyzsong <at> outlook.com>
:
You have taken responsibility.
(Fri, 02 Apr 2021 10:38:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
iyzsong <at> outlook.com
:
bug acknowledged by developer.
(Fri, 02 Apr 2021 10:38:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 47548-done <at> debbugs.gnu.org (full text, mbox):
Leo Famulari <leo <at> famulari.name> writes:
> On Thu, Apr 01, 2021 at 10:50:47PM +0800, iyzsong <at> outlook.com wrote:
>> From: 宋文武 <iyzsong <at> member.fsf.org>
>>
>> * gnu/packages/python-xyz.scm (python-smartypants): New variable.
>
> LGTM, thanks!
Pushed!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 30 Apr 2021 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 361 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.