From patchwork Thu Jun 13 15:06:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 14298 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 96712170CC; Thu, 13 Jun 2019 16:50:49 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 03FD6170CA for ; Thu, 13 Jun 2019 16:50:48 +0100 (BST) Received: from localhost ([::1]:41122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbRzy-0004UM-EZ for patchwork@mira.cbaines.net; Thu, 13 Jun 2019 11:50:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51606) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbRJg-0008QQ-DC for guix-patches@gnu.org; Thu, 13 Jun 2019 11:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbRJe-0001hk-Tk for guix-patches@gnu.org; Thu, 13 Jun 2019 11:07:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50548) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbRJe-0001hY-PX for guix-patches@gnu.org; Thu, 13 Jun 2019 11:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbRJe-0004B5-Hw for guix-patches@gnu.org; Thu, 13 Jun 2019 11:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36194] [PATCH 01/10] gnu: Add python-slugify. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Jun 2019 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36194 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36194@debbugs.gnu.org Received: via spool by 36194-submit@debbugs.gnu.org id=B36194.156043841015996 (code B ref 36194); Thu, 13 Jun 2019 15:07:02 +0000 Received: (at 36194) by debbugs.gnu.org; 13 Jun 2019 15:06:50 +0000 Received: from localhost ([127.0.0.1]:35847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbRJL-00049f-Q3 for submit@debbugs.gnu.org; Thu, 13 Jun 2019 11:06:50 -0400 Received: from mout.gmx.net ([212.227.15.15]:35291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbRJI-00048j-Ax for 36194@debbugs.gnu.org; Thu, 13 Jun 2019 11:06:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1560438393; bh=mBgtdlcdBd94vcADfngDMa4NTXgbwdUdzl5dE4VD++c=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bRg8AFakHgARJWAdoe8aXcPmLDtSdWExjMaML6dBdx460rZ7LbRa+p/CxWVh1cxc7 Ef7juuLItJC/cHk4yRRmjxmrStu3Dvku1Hh3Cd10ToliLVs2647Xrb0o2WUOVdH3Rv xcTloJI0GM6nuAH4ojuu3Q9uDP7LDZeY8SdtiD64= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere.lan ([92.6.238.228]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MJE6L-1hutxy0Q3f-00Kk3G; Thu, 13 Jun 2019 17:06:33 +0200 From: Pierre Langlois Date: Thu, 13 Jun 2019 16:06:19 +0100 Message-Id: <20190613150627.1882-1-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190613150126.17280-1-pierre.langlois@gmx.com> References: <20190613150126.17280-1-pierre.langlois@gmx.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:6BKBZ2ALVmwLeeBCL4/PtzLWgdkBDc4rl2qNSNoFi9+lgbMx1ZF 8LBMz6+GNjTTTFwpbXq9TXbxzMmLNNpXZrq9u2FSAHhJvtNQ1mviabcacZCNoGpQ7H7OcoJ 3GNWvJ0QK6hYdWm0WdkHu+0P+ctq6Uy/piQq2OVRHSeBRJ5wvCJ85nUKwvQDq0s5Oqbv+Px eqwJDbWDFMMhj2Cf+W76Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:XssOizfxhmY=:NtU8A6HvwZthLsOkzK7lve UWmJTCJUREP4jlqGpm9fYyb1L61QDajkhET91OCwRpnL20m1YGOl6aE4abtbUQYrrgXxaCsNI MGvemdbB3aShEK4D33E4BJOAoFub9r5+kYtoGP9P56DhaBTSzayIGcgP6lFhE/K2B0krmElf9 DkV2a79JR6bcDQB2a/xSjb4iTXh5FotjKRQ+8ExVNKG0sEa7kkXcgZMTZ4FqbPQRXOE9tYQCH fmHx49Gj6fQqc2UYKtoTTjsoml0Fw/hhRTgy4uUq897iYD3mnrS6agP0YX0lPGlkruXZGHjY1 La7JAH8O/mHPXXP3gOxDfuv/XDg/62aPquydV/671a0HnSx1mYjWfvJz04B7He3uRD6gg9JYz vCkU3BilSS3xH5oIqKXwPN7JRXBZeyDDV+bdXnlnE7fyhGLtvnw9z8DPsaZ3jP273cTYIMw2N Lq4LGT/4OEEGs8TwVx/o1YYdngPMMxWseEszKn8QHqOTPTqMZwhxV2DipbgoR5Yu12MltmUDt 1ZJUaSTxQypM3D7GZHF1719cYaa/A4L4xrqqBsP6OtWKKxGToA5uNiCv9ZOFEZgmFRnW2JMlm ya234hdDOKjGNUZwVhaduCFMu1lS7scmKZHN8N6rpbeRIQrewgEx16x78LD/AMUPf3bOtXoql LUMLCYnhtrKc5Gs6VDhZsU2xL7pIuJPJL2zIdwkh38ZNoE0V5Ex+p8wy3C5bXlWv1Eq5FmRGO fo6VSAkhHXte9isCChra+kr5am2dGKsNOhjgU4IPJrYPATFlthywaM23R9OUNX9tRMGL5js5E YAYVny/CnWcu8Wl7gbwr490pngG5OV+ESAV7FN1vBu82Et4xCJruY9rDvudj1X5rJ6zHSda7C +rEDniySDo/ImSXHBsVry/HZT+1pc2/EHuJoxaJUpgkWnKOPQw0X8g9DkYjpyHBbUEdIgZE1g ZzRq6GwiSejlwGnmaYx7HbRkMm9nX2URaQgAawYfybDMuMVOIhSd8a3vZUa68b0yGeAw6j78i 6W02V20XRN181vUiXgSb4fk= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-slugify): New variable. * gnu/packages/patches/python-slugify-depend-on-unidecode.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. --- gnu/local.mk | 1 + .../python-slugify-depend-on-unidecode.patch | 22 +++++++++++++ gnu/packages/python-web.scm | 31 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 gnu/packages/patches/python-slugify-depend-on-unidecode.patch -- 2.22.0 diff --git a/gnu/local.mk b/gnu/local.mk index c7b557ca61..f8c33dd8c2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1214,6 +1214,7 @@ dist_patch_DATA = \ %D%/packages/patches/python2-pygobject-2-gi-info-type-error-domain.patch \ %D%/packages/patches/python-pygpgme-fix-pinentry-tests.patch \ %D%/packages/patches/python-robotframework-honor-source-date-epoch.patch \ + %D%/packages/patches/python-slugify-depend-on-unidecode.patch \ %D%/packages/patches/python2-subprocess32-disable-input-test.patch \ %D%/packages/patches/python-unittest2-python3-compat.patch \ %D%/packages/patches/python-unittest2-remove-argparse.patch \ diff --git a/gnu/packages/patches/python-slugify-depend-on-unidecode.patch b/gnu/packages/patches/python-slugify-depend-on-unidecode.patch new file mode 100644 index 0000000000..93a3aaebe9 --- /dev/null +++ b/gnu/packages/patches/python-slugify-depend-on-unidecode.patch @@ -0,0 +1,22 @@ +diff --git a/setup.py b/setup.py +index 4800173..6bdd77f 100755 +--- a/setup.py ++++ b/setup.py +@@ -14,8 +14,7 @@ url = 'https://github.com/un33k/python-slugify' + author = 'Val Neekman' + author_email = 'info@neekware.com' + license = 'MIT' +-install_requires = ['text-unidecode==1.2'] +-extras_require = {'unidecode': ['Unidecode==1.0.23']} ++install_requires = ['Unidecode==1.0.23'] + + classifiers = [ + 'Development Status :: 5 - Production/Stable', +@@ -67,7 +66,6 @@ setup( + author_email=author_email, + packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), + install_requires=install_requires, +- extras_require=extras_require, + classifiers=classifiers, + entry_points={'console_scripts': ['slugify=slugify.slugify:main']}, + ) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 042484c6a1..a5cc2cc326 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2018 Maxim Cournoyer ;;; Copyright © 2019 Vagrant Cascadian ;;; Copyright © 2019 Brendan Tildesley +;;; Copyright © 2019 Pierre Langlois ;;; ;;; This file is part of GNU Guix. ;;; @@ -3156,3 +3157,33 @@ Python.") (propagated-inputs `(("python-gevent" ,python2-gevent) ("python-tornado" ,python2-tornado))))) + +(define-public python-slugify + (package + (name "python-slugify") + (version "3.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-slugify" version)) + (sha256 + (base32 + "0n6pfmsq899c54plpvzi46l7zrpa3zfpm8im6h32czjw6kxky5jp")) + (patches + (search-patches "python-slugify-depend-on-unidecode.patch")))) + (native-inputs + `(("python-wheel" ,python-wheel))) + (propagated-inputs + `(("python-unidecode" ,python-unidecode))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "python" "test.py")))))) + (build-system python-build-system) + (home-page "https://github.com/un33k/python-slugify") + (synopsis "Python Slugify application that handles Unicode") + (description "This package provides a @command{slufigy} command and +library to create slugs from unicode strings while keeping it DRY.") + (license license:expat)))