summaryrefslogtreecommitdiff
path: root/devel/py-wrapt
diff options
context:
space:
mode:
authorrichard <richard>2016-05-05 11:15:33 +0000
committerrichard <richard>2016-05-05 11:15:33 +0000
commit3cb6cda5b45b15414d4a03b197565dca3894898b (patch)
tree3bfc636e170cd037d8ef531917dcda7ca29b5506 /devel/py-wrapt
parent9a4999cda10306c503dbd5b6f680f11733128143 (diff)
downloadpkgsrc-3cb6cda5b45b15414d4a03b197565dca3894898b.tar.gz
add devel/py-wrapt (wrapt-1.10.8)
A Python module for decorators, wrappers and monkey patching. The aim of the wrapt module is to provide a transparent object proxy for Python, which can be used as the basis for the construction of function wrappers and decorator functions. The wrapt module focuses very much on correctness. It therefore goes way beyond existing mechanisms such as functools.wraps() to ensure that decorators preserve introspectability, signatures, type checking abilities etc. The decorators that can be constructed using this module will work in far more scenarios than typical decorators and provide more predictable and consistent behaviour. To ensure that the overhead is as minimal as possible, a C extension module is used for performance critical components. An automatic fallback to a pure Python implementation is also provided where a target system does not have a compiler to allow the C extension to be compiled.
Diffstat (limited to 'devel/py-wrapt')
-rw-r--r--devel/py-wrapt/DESCR17
-rw-r--r--devel/py-wrapt/Makefile14
-rw-r--r--devel/py-wrapt/PLIST18
-rw-r--r--devel/py-wrapt/distinfo6
4 files changed, 55 insertions, 0 deletions
diff --git a/devel/py-wrapt/DESCR b/devel/py-wrapt/DESCR
new file mode 100644
index 00000000000..aa77d1579e1
--- /dev/null
+++ b/devel/py-wrapt/DESCR
@@ -0,0 +1,17 @@
+A Python module for decorators, wrappers and monkey patching.
+
+The aim of the wrapt module is to provide a transparent object proxy for
+Python, which can be used as the basis for the construction of function
+wrappers and decorator functions.
+
+The wrapt module focuses very much on correctness. It therefore goes way
+beyond existing mechanisms such as functools.wraps() to ensure that
+decorators preserve introspectability, signatures, type checking abilities
+etc. The decorators that can be constructed using this module will work in
+far more scenarios than typical decorators and provide more predictable and
+consistent behaviour.
+
+To ensure that the overhead is as minimal as possible, a C extension module
+is used for performance critical components. An automatic fallback to a pure
+Python implementation is also provided where a target system does not have a
+compiler to allow the C extension to be compiled.
diff --git a/devel/py-wrapt/Makefile b/devel/py-wrapt/Makefile
new file mode 100644
index 00000000000..af041660b70
--- /dev/null
+++ b/devel/py-wrapt/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2016/05/05 11:15:33 richard Exp $
+
+DISTNAME= wrapt-1.10.8
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_PYPI:=w/wrapt/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://github.com/GrahamDumpleton/wrapt
+COMMENT= Python module for decorators, wrappers and monkey patching
+LICENSE= 2-clause-bsd
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-wrapt/PLIST b/devel/py-wrapt/PLIST
new file mode 100644
index 00000000000..e5dc381545e
--- /dev/null
+++ b/devel/py-wrapt/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2016/05/05 11:15:33 richard Exp $
+${PYSITELIB}/${EGG_FILE}
+${PYSITELIB}/wrapt/__init__.py
+${PYSITELIB}/wrapt/__init__.pyc
+${PYSITELIB}/wrapt/__init__.pyo
+${PYSITELIB}/wrapt/_wrappers.so
+${PYSITELIB}/wrapt/arguments.py
+${PYSITELIB}/wrapt/arguments.pyc
+${PYSITELIB}/wrapt/arguments.pyo
+${PYSITELIB}/wrapt/decorators.py
+${PYSITELIB}/wrapt/decorators.pyc
+${PYSITELIB}/wrapt/decorators.pyo
+${PYSITELIB}/wrapt/importer.py
+${PYSITELIB}/wrapt/importer.pyc
+${PYSITELIB}/wrapt/importer.pyo
+${PYSITELIB}/wrapt/wrappers.py
+${PYSITELIB}/wrapt/wrappers.pyc
+${PYSITELIB}/wrapt/wrappers.pyo
diff --git a/devel/py-wrapt/distinfo b/devel/py-wrapt/distinfo
new file mode 100644
index 00000000000..8a7424679de
--- /dev/null
+++ b/devel/py-wrapt/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/05/05 11:15:33 richard Exp $
+
+SHA1 (wrapt-1.10.8.tar.gz) = bf61e605eb54383666e3a403b99f49c4dee406d3
+RMD160 (wrapt-1.10.8.tar.gz) = 55882ba07e05aed13ceb301fd545aa9f891bb8a9
+SHA512 (wrapt-1.10.8.tar.gz) = 0e16bdf6cd18af546e4f8c862bcbe247a6e61977b5a6f26d7756564d188da210bbe1b7fea12e476a0bbf1fabc168d9d1864b2af4d5a4bc875fef936317320f29
+Size (wrapt-1.10.8.tar.gz) = 25183 bytes