From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#36194] [PATCH 01/10] gnu: Add python-slugify. Resent-Message-ID: From: Pierre Langlois Date: Thu, 13 Jun 2019 16:06:19 +0100 Message-Id: <20190613150627.1882-1-pierre.langlois@gmx.com> In-Reply-To: <20190613150126.17280-1-pierre.langlois@gmx.com> References: <20190613150126.17280-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36194@debbugs.gnu.org * 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. =2D-- 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-unidecod= e.patch diff --git a/gnu/local.mk b/gnu/local.mk index c7b557ca61..f8c33dd8c2 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -1214,6 +1214,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/python2-pygobject-2-gi-info-type-error-domain.patc= h \ %D%/packages/patches/python-pygpgme-fix-pinentry-tests.patch \ %D%/packages/patches/python-robotframework-honor-source-date-epoch.patc= h \ + %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 =2D-- /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 =3D 'https://github.com/un33k/python-slugify' + author =3D 'Val Neekman' + author_email =3D 'info@neekware.com' + license =3D 'MIT' +-install_requires =3D ['text-unidecode=3D=3D1.2'] +-extras_require =3D {'unidecode': ['Unidecode=3D=3D1.0.23']} ++install_requires =3D ['Unidecode=3D=3D1.0.23'] + + classifiers =3D [ + 'Development Status :: 5 - Production/Stable', +@@ -67,7 +66,6 @@ setup( + author_email=3Dauthor_email, + packages=3Dfind_packages(exclude=3DEXCLUDE_FROM_PACKAGES), + install_requires=3Dinstall_requires, +- extras_require=3Dextras_require, + classifiers=3Dclassifiers, + entry_points=3D{'console_scripts': ['slugify=3Dslugify.slugify:main'= ]}, + ) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 042484c6a1..a5cc2cc326 100644 =2D-- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -29,6 +29,7 @@ ;;; Copyright =C2=A9 2018 Maxim Cournoyer ;;; Copyright =C2=A9 2019 Vagrant Cascadian ;;; Copyright =C2=A9 2019 Brendan Tildesley +;;; Copyright =C2=A9 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))) =2D- 2.22.0