GNU bug report logs - #47548
[PATCH 1/2] gnu: Add python-smartypants.

Previous Next

Package: guix-patches;

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.

View this report as an mbox folder, status mbox, maintainer mbox


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> outlook.com
To: guix-patches <at> gnu.org
Cc: 宋文武 <iyzsong <at> member.fsf.org>
Subject: [PATCH 1/2] gnu: Add python-smartypants.
Date: Thu,  1 Apr 2021 22:50:47 +0800
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):

From: Leo Famulari <leo <at> famulari.name>
To: iyzsong <at> outlook.com
Cc: 宋文武 <iyzsong <at> member.fsf.org>, 47548 <at> debbugs.gnu.org
Subject: Re: [bug#47548] [PATCH 1/2] gnu: Add python-smartypants.
Date: Thu, 1 Apr 2021 16:19:25 -0400
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):

From: 宋文武 <iyzsong <at> outlook.com>
To: Leo Famulari <leo <at> famulari.name>
Cc: 47548-done <at> debbugs.gnu.org,
 宋文武 <iyzsong <at> member.fsf.org>
Subject: Re: [bug#47548] [PATCH 1/2] gnu: Add python-smartypants.
Date: Fri, 02 Apr 2021 18:39:57 +0800
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.