[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#31428] [PATCH] gnu: Add python-glob2.
From: |
Fis Trivial |
Subject: |
[bug#31428] [PATCH] gnu: Add python-glob2. |
Date: |
Sat, 12 May 2018 10:44:54 +0000 |
* 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
address@hidden://docs.python.org/library/glob.html} which adds:
+
address@hidden
address@hidden The ability to capture the text matched by glob patterns, and
return
+those matches alongside the filenames.
address@hidden A recursive @code{**} globbing syntax, akin for example to the
globstar
+option of the bash shell.
address@hidden The ability to replace the filesystem functions used, in order
to glob
+on virtual filesystems.
address@hidden Compatible with Python 2 and Python 3 (tested with 3.3).
address@hidden 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