From: Fis Trivial <ybbs.daans@hotmail.com>
To: Andreas Enge <andreas@enge.fr>
Cc: "31428@debbugs.gnu.org" <31428@debbugs.gnu.org>
Subject: [bug#31428] [PATCH] gnu: Add python-glob2.
Date: Sat, 12 May 2018 10:44:54 +0000 [thread overview]
Message-ID: <BLUPR16MB05003074F42B522B2DA14270929E0@BLUPR16MB0500.namprd16.prod.outlook.com> (raw)
In-Reply-To: <20180512101418.GA2009@jurong>
* gnu/packages/python.scm (python-glob2, python2-glob2): New variables.
---
gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f942a2be4..ab634d182 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13297,3 +13297,37 @@ generators and Python 3.7's context managers into Python 3.5.")
manager compatible with @code{asyncio}.")
(license license:asl2.0)))
+(define-public python-glob2
+ (package
+ (name "python-glob2")
+ (version "0.6")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/miracle2k/python-glob2/archive/"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0ja168f0dz4kbz4m06dm0rd3acaypk6hjx2km541pw22y9s40mag"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/miracle2k/python-glob2/")
+ (synopsis "Extended Version of the python buildin glob module")
+ (description "This is an extended version of Python's builtin glob module
+@url{http://docs.python.org/library/glob.html} which adds:
+
+@itemize
+@item The ability to capture the text matched by glob patterns, and return
+those matches alongside the filenames.
+@item A recursive @code{**} globbing syntax, akin for example to the globstar
+option of the bash shell.
+@item The ability to replace the filesystem functions used, in order to glob
+on virtual filesystems.
+@item Compatible with Python 2 and Python 3 (tested with 3.3).
+@end itemize
+Glob2 currently based on the glob code from Python 3.3.1.")
+ (license license:bsd-2)))
+
+(define-public python2-glob2
+ (package-with-python2 python-glob2))
--
2.14.3
next prev parent reply other threads:[~2018-05-12 10:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-12 9:47 [bug#31428] [PATCH 0/1] gnu: Add python-glob2 Fis Trivial
2018-05-12 9:51 ` [bug#31428] [PATCH 1/1] " Fis Trivial
2018-05-12 10:14 ` Andreas Enge
2018-05-12 10:41 ` Fis Trivial
2018-05-12 10:44 ` Fis Trivial [this message]
2018-05-20 21:19 ` bug#31428: [PATCH] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLUPR16MB05003074F42B522B2DA14270929E0@BLUPR16MB0500.namprd16.prod.outlook.com \
--to=ybbs.daans@hotmail.com \
--cc=31428@debbugs.gnu.org \
--cc=andreas@enge.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).