diff options
author | leot <leot@pkgsrc.org> | 2016-04-14 11:06:27 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2016-04-14 11:06:27 +0000 |
commit | 96b334c8480d69217dfcd307f68e2f8aa96f56fd (patch) | |
tree | adc78114916cde92086443d07b11be9c1ced4c03 /devel | |
parent | 2497e52ae06363a09a8f46e70036d2474b9d1779 (diff) | |
download | pkgsrc-96b334c8480d69217dfcd307f68e2f8aa96f56fd.tar.gz |
Import py-attrs-15.2.0 as devel/py-attrs
attrs is an MIT-licensed Python package with class decorators that ease the
chores of implementing the most common attribute-related object protocols.
You just specify the attributes to work with and attrs gives you:
* a nice human-readable __repr__,
* a complete set of comparison methods,
* an initializer,
* and much more
without writing dull boilerplate code again and again.
This gives you the power to use actual classes with actual types in your code
instead of confusing tuples or confusingly behaving namedtuples.
So put down that type-less data structures and welcome some class into your
life!
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-attrs/DESCR | 17 | ||||
-rw-r--r-- | devel/py-attrs/Makefile | 16 | ||||
-rw-r--r-- | devel/py-attrs/PLIST | 27 | ||||
-rw-r--r-- | devel/py-attrs/distinfo | 6 |
4 files changed, 66 insertions, 0 deletions
diff --git a/devel/py-attrs/DESCR b/devel/py-attrs/DESCR new file mode 100644 index 00000000000..14e3d01ca7d --- /dev/null +++ b/devel/py-attrs/DESCR @@ -0,0 +1,17 @@ +attrs is an MIT-licensed Python package with class decorators that ease the +chores of implementing the most common attribute-related object protocols. + +You just specify the attributes to work with and attrs gives you: + + * a nice human-readable __repr__, + * a complete set of comparison methods, + * an initializer, + * and much more + +without writing dull boilerplate code again and again. + +This gives you the power to use actual classes with actual types in your code +instead of confusing tuples or confusingly behaving namedtuples. + +So put down that type-less data structures and welcome some class into your +life! diff --git a/devel/py-attrs/Makefile b/devel/py-attrs/Makefile new file mode 100644 index 00000000000..ee075170ed4 --- /dev/null +++ b/devel/py-attrs/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1 2016/04/14 11:06:27 leot Exp $ + +DISTNAME= attrs-15.2.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_PYPI} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://attrs.readthedocs.org/ +COMMENT= Attributes without boilerplate +LICENSE= mit + +USE_LANGUAGES= # none + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-attrs/PLIST b/devel/py-attrs/PLIST new file mode 100644 index 00000000000..0759d4050b5 --- /dev/null +++ b/devel/py-attrs/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1 2016/04/14 11:06:27 leot Exp $ +${PYSITELIB}/attr/__init__.py +${PYSITELIB}/attr/__init__.pyc +${PYSITELIB}/attr/__init__.pyo +${PYSITELIB}/attr/_compat.py +${PYSITELIB}/attr/_compat.pyc +${PYSITELIB}/attr/_compat.pyo +${PYSITELIB}/attr/_config.py +${PYSITELIB}/attr/_config.pyc +${PYSITELIB}/attr/_config.pyo +${PYSITELIB}/attr/_funcs.py +${PYSITELIB}/attr/_funcs.pyc +${PYSITELIB}/attr/_funcs.pyo +${PYSITELIB}/attr/_make.py +${PYSITELIB}/attr/_make.pyc +${PYSITELIB}/attr/_make.pyo +${PYSITELIB}/attr/filters.py +${PYSITELIB}/attr/filters.pyc +${PYSITELIB}/attr/filters.pyo +${PYSITELIB}/attr/validators.py +${PYSITELIB}/attr/validators.pyc +${PYSITELIB}/attr/validators.pyo +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/not-zip-safe +${PYSITELIB}/${EGG_INFODIR}/top_level.txt diff --git a/devel/py-attrs/distinfo b/devel/py-attrs/distinfo new file mode 100644 index 00000000000..1bd99f52321 --- /dev/null +++ b/devel/py-attrs/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/04/14 11:06:27 leot Exp $ + +SHA1 (attrs-15.2.0.tar.gz) = eacb016efc4f6ae0a938318a87c69972c151cb15 +RMD160 (attrs-15.2.0.tar.gz) = 18658fe3760a14206092fc1154693be076636aec +SHA512 (attrs-15.2.0.tar.gz) = f34f70acbd01dc94c6f994ce7c764e169e26f5d71454522f4f88859b67309556e88e20504e2a6a63590e4ad8e55f04ba7cc9a90c024364c1bf932bfadd5a4491 +Size (attrs-15.2.0.tar.gz) = 36766 bytes |