package/python-scandir: New package
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Mon, 12 Jun 2017 23:42:11 +0000 (16:42 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 15 Jun 2017 20:48:32 +0000 (22:48 +0200)
Add 'scandir'[1] package to buildroot. Needed by 'pathlib2'.

[1] https://pypi.python.org/pypi/scandir

Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/python-scandir/Config.in [new file with mode: 0644]
package/python-scandir/python-scandir.hash [new file with mode: 0644]
package/python-scandir/python-scandir.mk [new file with mode: 0644]

index 282952b40e8478edadbf53d2871ad517e5403ec0..9d5f51b08b0193f5bf2bb8735beca77edbb12678 100644 (file)
@@ -83,6 +83,7 @@ F:    package/wine/
 N:     Andrey Smirnov <andrew.smirnov@gmail.com>
 F:     package/python-decorator/
 F:     package/python-ipython-genutils/
+F:     package/python-scandir/
 F:     package/python-simplegeneric/
 F:     package/python-traitlets/
 
index 0967de14f74577cab7cc8a3014378626d18af6f3..14315d5ca68f511c834a2a3ca1ea53dc1f55b9d0 100644 (file)
@@ -829,6 +829,7 @@ menu "External python modules"
        source "package/python-requests-toolbelt/Config.in"
        source "package/python-rpi-gpio/Config.in"
        source "package/python-rtslib-fb/Config.in"
+       source "package/python-scandir/Config.in"
        source "package/python-scapy3k/Config.in"
        source "package/python-sdnotify/Config.in"
        source "package/python-serial/Config.in"
diff --git a/package/python-scandir/Config.in b/package/python-scandir/Config.in
new file mode 100644 (file)
index 0000000..497f962
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_SCANDIR
+       bool "python-scandir"
+       help
+         scandir, a better directory iterator and faster os.walk()
+
+         https://pypi.python.org/pypi/scandir
diff --git a/package/python-scandir/python-scandir.hash b/package/python-scandir/python-scandir.hash
new file mode 100644 (file)
index 0000000..aecd9a5
--- /dev/null
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/scandir/json, sha256 locally computed
+md5 a2713043de681bba6b084be42e7a8a44 scandir-1.5.tar.gz
+sha256 c2612d1a487d80fb4701b4a91ca1b8f8a695b1ae820570815e85e8c8b23f1283 scandir-1.5.tar.gz
diff --git a/package/python-scandir/python-scandir.mk b/package/python-scandir/python-scandir.mk
new file mode 100644 (file)
index 0000000..2ff8ea2
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-scandir
+#
+################################################################################
+
+PYTHON_SCANDIR_VERSION = 1.5
+PYTHON_SCANDIR_SOURCE = scandir-$(PYTHON_SCANDIR_VERSION).tar.gz
+PYTHON_SCANDIR_SITE = https://pypi.python.org/packages/bd/f4/3143e0289faf0883228017dbc6387a66d0b468df646645e29e1eb89ea10e
+PYTHON_SCANDIR_LICENSE = BSD-3-Clause
+PYTHON_SCANDIR_LICENSE_FILE = LICENSE.txt
+PYTHON_SCANDIR_SETUP_TYPE = setuptools
+
+$(eval $(python-package))