summaryrefslogtreecommitdiff
path: root/manualPorts/python-selectors2/Pkgfile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-08 20:33:00 +0200
committerErich Eckner <git@eckner.net>2019-09-08 20:35:05 +0200
commit4e9c879a96d971a3138be8f42cd4c98db582faa8 (patch)
tree7d4717e9018f6e450d58c58aa5a4d66bac951537 /manualPorts/python-selectors2/Pkgfile
parent23e795098fefa430f269ac3ae6902987ffa0feaf (diff)
downloadcrux-ports-4e9c879a96d971a3138be8f42cd4c98db582faa8.tar.xz
python-selectors2 neu
Diffstat (limited to 'manualPorts/python-selectors2/Pkgfile')
-rw-r--r--manualPorts/python-selectors2/Pkgfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/manualPorts/python-selectors2/Pkgfile b/manualPorts/python-selectors2/Pkgfile
new file mode 100644
index 0000000..a391e7f
--- /dev/null
+++ b/manualPorts/python-selectors2/Pkgfile
@@ -0,0 +1,17 @@
+# Description: Backported, durable, and portable selectors designed to replace the standard library selectors module
+# URL: http://pypi.org/project/selectors2/
+# Maintainer: Erich Eckner, crux at eckner dot net
+# Depends on: python
+
+name=python-selectors2
+version=2.0.1
+_distdir=${name#*-}-${version}
+release=1
+source=(https://files.pythonhosted.org/packages/a4/54/d690d931777ca7310562997fab09019582e6e557984c02d7647f3654f7f5/${_distdir}.tar.gz)
+
+build() {
+ cd ${_distdir}
+ python setup.py build
+ python setup.py install --root=${PKG} --optimize=1
+ rm -rf --one-file-system "${PKG}/usr/lib/python2.7/site-packages/${_distdir}-py2.7.egg-info"
+}