[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/36: gnu: Add python-scandir.
From: |
julien lepiller |
Subject: |
15/36: gnu: Add python-scandir. |
Date: |
Thu, 11 May 2017 16:01:27 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 38a370d2bca0502d41186327a5478d542418739e
Author: Julien Lepiller <address@hidden>
Date: Sat Apr 22 14:47:22 2017 +0200
gnu: Add python-scandir.
* gnu/packages/python.scm (python-scandir, python2-scandir): New variables.
---
gnu/packages/python.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7961586..4b87a3b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14414,3 +14414,27 @@ It supports both normal and Unicode strings.")
(define-public python2-levenshtein
(package-with-python2 python-levenshtein))
+
+(define-public python-scandir
+ (package
+ (name "python-scandir")
+ (version "1.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "scandir" version))
+ (sha256
+ (base32 "0yjrgp0mxp3d8bjkq2m1ac2ys8n76wykksvgyjrnil9gr3fx7a5d"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/benhoyt/scandir")
+ (synopsis "Directory iteration function")
+ (description
+ "Directory iteration function like os.listdir(), except that instead of
+returning a list of bare filenames, it yields DirEntry objects that include
+file type and stat information along with the name. Using scandir() increases
+the speed of os.walk() by 2-20 times (depending on the platform and file
+system) by avoiding unnecessary calls to os.stat() in most cases.")
+ (license license:bsd-3)))
+
+(define-public python2-scandir
+ (package-with-python2 python-scandir))
- 03/36: gnu: Add python-pytest-catchlog., (continued)
- 03/36: gnu: Add python-pytest-catchlog., julien lepiller, 2017/05/11
- 08/36: gnu: Add python-cssmin., julien lepiller, 2017/05/11
- 07/36: gnu: python-rq: Update to 0.7.1., julien lepiller, 2017/05/11
- 06/36: gnu: Add python-sphinx-me., julien lepiller, 2017/05/11
- 16/36: gnu: Add python2-stemming., julien lepiller, 2017/05/11
- 05/36: gnu: Add python-webassets., julien lepiller, 2017/05/11
- 09/36: gnu: Add python-diff-match-patch., julien lepiller, 2017/05/11
- 13/36: gnu: python-dateutil: Update to 2.6.0., julien lepiller, 2017/05/11
- 12/36: gnu: Add python-elasticsearch., julien lepiller, 2017/05/11
- 14/36: gnu: Add python-levenshtein., julien lepiller, 2017/05/11
- 15/36: gnu: Add python-scandir.,
julien lepiller <=
- 17/36: gnu: Add python-factory-boy., julien lepiller, 2017/05/11
- 18/36: gnu: Add python-translate-toolkit., julien lepiller, 2017/05/11
- 22/36: gnu: Add python-dj-database-url., julien lepiller, 2017/05/11
- 27/36: gnu: Add python-hiredis., julien lepiller, 2017/05/11
- 31/36: gnu: Add python-django-sortedm2m., julien lepiller, 2017/05/11
- 33/36: gnu: Add python-django-statici18n., julien lepiller, 2017/05/11
- 34/36: gnu: python-pytest-django: Update to 3.1.2., julien lepiller, 2017/05/11
- 21/36: gnu: Add python-django-jsonfield., julien lepiller, 2017/05/11
- 23/36: gnu: Add python-django-bulk-update., julien lepiller, 2017/05/11
- 11/36: gnu: Add python-nosexcover., julien lepiller, 2017/05/11