From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OA/EHOzgZWDM1wAAgWs5BA (envelope-from ) for ; Thu, 01 Apr 2021 17:04:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yLmeFuzgZWAVTgAAbx9fmQ (envelope-from ) for ; Thu, 01 Apr 2021 15:04:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 10EF81F088 for ; Thu, 1 Apr 2021 17:04:12 +0200 (CEST) Received: from localhost ([::1]:54750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRyri-0002Hi-Ur for larch@yhetil.org; Thu, 01 Apr 2021 11:04:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRyrb-0002HU-Dm for guix-patches@gnu.org; Thu, 01 Apr 2021 11:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRyra-0003Mb-P5 for guix-patches@gnu.org; Thu, 01 Apr 2021 11:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRyra-0002dJ-Ie for guix-patches@gnu.org; Thu, 01 Apr 2021 11:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47548] [PATCH 1/2] gnu: Add python-smartypants. Resent-From: iyzsong@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Apr 2021 15:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47548 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47548@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161728940310066 (code B ref -1); Thu, 01 Apr 2021 15:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2021 15:03:23 +0000 Received: from localhost ([127.0.0.1]:58264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRyqx-0002cH-7N for submit@debbugs.gnu.org; Thu, 01 Apr 2021 11:03:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:56352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRyqv-0002cA-T2 for submit@debbugs.gnu.org; Thu, 01 Apr 2021 11:03:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRyqv-0002GM-Mv for guix-patches@gnu.org; Thu, 01 Apr 2021 11:03:21 -0400 Received: from mail-oln040092255011.outbound.protection.outlook.com ([40.92.255.11]:64463 helo=APC01-HK2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRyqt-0002ox-El for guix-patches@gnu.org; Thu, 01 Apr 2021 11:03:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gmC6/kYwVIzAn4J32zA0lsObaHqMUo3KeIE2xzBx0aXZHzW9Pm5+0UfZ14IsSRORD1CZatKzDw6ADt9qjxJXtXeekZs+/D6VklisiRPGQJ9Lzemqfc1jUZEOqoP7sHQKZKpJwEpr7Cn/oDieK5XOSSGw7YQ1HiHVkW2KTodXq+Lf38lEuTYGNczG7KZTzPHGvZZSMGCLW2igzOTvE8C+p7WzTgjf4kZLXk1NZrHbZcPFDGuoC3Xn0Fr0W5c8lZYcmOwJJYMhRG6ZLyBCuHFnxHnJLNZDyJzR8+yVykf15GveKvQN+FLJPJZEClEN/dCy3jWgTAntWctKW2uOQ8Ed0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BiHHRHwAh7ClYNn3JjAhkstKDXsR9oP1bIzZBmzZ4HM=; b=lvclkxWubtmt69cTxQqxWytGXtqXASAC+WhIEsFNmc/O49GOTWY71AMzFPmwou16Qf4W4xJpwls2sor3XxFn4fSbVwj/CF6zWS8PqoCaxa49gu0BAbMiwi1iIC7xMWwnboolERlR4/j8cRejD1bnBSnMtahloWwWbHkiZQLEFE3r0l8OLeGQHDFxmDtAKSmf4xZV7w0XSRDvgNsoP5BFzi2d3U8LReu044+LdGaZiomBfZdeNbA5iSWjQiGECF4nG4XW2tDS7wbVug1uj6c9JREcRXfDmjcWzgLzWHXYBqXA5xD4ZS/k2sJQORUTpubQ1KGYRjnxK5AxMY5CcGS0TQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BiHHRHwAh7ClYNn3JjAhkstKDXsR9oP1bIzZBmzZ4HM=; b=MdafxLKYtuw9a4XZ3Uf9N4rGvvg/fE81TwqKnn+Ib3f3H/V9rLPO5bMdJW3ldR+chofIzq23thbzNebA05O7O2lmX1yV/bCaSjoLhdLiAsOyl2R2Ag0x3eh7DVDTvJZMX/bh4Nf5silXexFj6d3tMEW8y7ZriSUP90lHhyUyZ06WY7JDPZTcj/5mkMQO1vbLVSCaPd/dZ12NF6SC7NQpdYFugfgpF+rhha2PFMzQU2l5plorXtTy3VJJzeML9qojw/D0adcplz2k0p6ktu3vQw4AWu/9bFnuEQ7t5ZwSv9LxYxIr1jB2TAzLnVjYlu/FwYRJK0gIpToza2L+eio+TQ== Received: from SG2APC01FT030.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::50) by SG2APC01HT065.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::386) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Thu, 1 Apr 2021 14:48:08 +0000 Received: from OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (10.152.250.59) by SG2APC01FT030.mail.protection.outlook.com (10.152.250.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Thu, 1 Apr 2021 14:48:08 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8B9D1B9A752BA93E4DCBEB54DF5849BCD824A87D9B05751B8BF00B8B265B0400; UpperCasedChecksum:F0E78F55773F7B8494BD74ABF7833C7194C2BD5466FC83DAE11535AA17D562DF; SizeAsReceived:8491; Count:45 Received: from OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM ([fe80::3077:ff28:1097:42cd]) by OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM ([fe80::3077:ff28:1097:42cd%6]) with mapi id 15.20.3999.029; Thu, 1 Apr 2021 14:48:08 +0000 From: iyzsong@outlook.com Date: Thu, 1 Apr 2021 22:50:47 +0800 Message-ID: X-Mailer: git-send-email 2.30.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TMN: [7pqcY2h1aXuJTzIfIgouBVpFCVP1BBg/Ih9Ied+bN/C9hlmE5qelDxGpx2ZjLSEg] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) To OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:ec::11) X-Microsoft-Original-Message-ID: <20210401145048.17894-1-iyzsong@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (2409:8a62:376:7f20:2f1:f5ff:fe18:6bb) by HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.0 via Frontend Transport; Thu, 1 Apr 2021 14:48:07 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a4ba6537-c002-4804-c3b1-08d8f51d29d2 X-MS-TrafficTypeDiagnostic: SG2APC01HT065: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S4Al7HTcLilKKKNdXWlxQQyahfI6CrbojQ4fdiFfJPjyr2f3uieCLHIvEyGPhkvDMpS7ucnw+j0qQzNAK5EqxUD75T/Bf5Gvl4px3iCu8T/53H3JbNZ5v8fQuH3kcaNq3kxZsdR/bXIEq6h6SlujXJKuBY8IsbS/GneSq8qXlPPIlS0qKSdGJF1pdmiMdJO8TGhpcjpWBKo6q1XxVRl/0/13y+V653KBDugZTEj2P8CuGpxMTCpCWTByPo3JJTfuyhazrP0ZYxhIEnv70f9j/HnwLw7jI/xszeYuOD9WezqztuLJ2+uWeIcqTRw27/oqvdtPrhwiQ5aSU81VL7NqWCrtAaeb0hxVje+fv1aUSfO36QKnfYLuLV0vy33a+oHTsJ2bP5urGn7vK/YIiBbsgpZ3smDyALdzw9dzygBRpWWSJ1AxvDgqnp2qs9XQDKIy X-MS-Exchange-AntiSpam-MessageData: iiXFhGvJLFXEKJedS57bjR7xEgS5RdcLJ4TBMYknNSxvqWlhHhhWdmA4btmbTTp7C/IAR3yF2ZR9Nwz43jr9lwBKjWAMqh1IHmb41GjNSgd60of5dqpubkZlRqCR9g/p7ms9oUfvbP5HaEA4cPfc/GRSBoTPQtHODz/o/crsUnsWcSUkCR8UF7lKx4ran3rWjkZavliyk084Uc2Om+g0bQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4ba6537-c002-4804-c3b1-08d8f51d29d2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2021 14:48:08.1642 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT030.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT065 Received-SPF: pass client-ip=40.92.255.11; envelope-from=iyzsong@outlook.com; helo=APC01-HK2-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617289452; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BiHHRHwAh7ClYNn3JjAhkstKDXsR9oP1bIzZBmzZ4HM=; b=l6zhCdpNA4Gsy+H62Dt1tGpo0VOaM533oIS72sdTii15VIpn1UhawAT/JHaN90mEIqTDiY U103DUugiMKd3Rt+Lz9lGj+PpHSvmDC7Vd2Vt62Gm/DGxfoQ2dcfJdpTDOvLHr6n1GIiC6 nYK0TAgi+KevplO1SOzKv4eV2jum/Adwu8Q9YtZ8mbgE3z4flxtD+dyg+64fddX86wnqPJ nE7QxLZ11JF9Le/QKEgP3H9Em3X5ceT3x/uFJreTZCppaBWI7VjY1DiNRw6oRTgEWwsXeg dR6WMl7DzqmzJ7aNWkq+gOx6Su+kk1/v86nse60uVN67tYRFGBooNKg6uUqTkg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1617289452; a=rsa-sha256; cv=fail; b=onzs6pQM3sro8C72D/q0AAX1P1BP+oZ/G8bRxpt0ay/EVQzv2vXnZ4OjPRzPUpPPgMe22f Oty6Wxn+H2kTrrNOazlRLJcMGa2HDuU03ENRsCR6wf227LMeWCUgpSCC9RwAISFbbV+555 CAdsei6uL+xqq2QQvYv8ra+Rdd7H35Jg1Yo+xvwbqIxpKWADpTCIGpTUPFza1KsrvHxGi1 Ljlec+faWYV+d7vL/0GWDocAzvwFf8CkRs0w21gryIvai2ZsZm+oAjNvw2KfNqZBH2SXB/ C0EIoxciioTACirVM0xfSPUGUO60Xfqa76EiH4yBFNRHDcEShAFulugOjIcjiA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=outlook.com header.s=selector1 header.b=MdafxLKY; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=outlook.com header.s=selector1 header.b=MdafxLKY; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 10EF81F088 X-Spam-Score: 0.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: L3URhqlKkCFP From: 宋文武 * 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