Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -4386,6 +4386,7 @@ SUBDIR += py-fasteners SUBDIR += py-fastentrypoints SUBDIR += py-fastimport + SUBDIR += py-fastnumbers SUBDIR += py-filemagic SUBDIR += py-fileutils SUBDIR += py-five.customerize Index: devel/py-fastnumbers/Makefile =================================================================== --- devel/py-fastnumbers/Makefile +++ devel/py-fastnumbers/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= fastnumbers +PORTVERSION= 2.0.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Super-fast and clean conversions to numbers + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist distutils + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/fastnumbers.so + +.include Index: devel/py-fastnumbers/distinfo =================================================================== --- devel/py-fastnumbers/distinfo +++ devel/py-fastnumbers/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1508392676 +SHA256 (fastnumbers-2.0.1.tar.gz) = ea67263d6360b9294c4bc5924089771d3f003bf6b6343383d700ea9659b506fb +SIZE (fastnumbers-2.0.1.tar.gz) = 299489 Index: devel/py-fastnumbers/pkg-descr =================================================================== --- devel/py-fastnumbers/pkg-descr +++ devel/py-fastnumbers/pkg-descr @@ -0,0 +1,9 @@ +py-fastnumbers provides: +* drop-in replacements for the Python built-in int and float that on + average are up to 2x faster +* a set of convenience functions that wrap the above int and float replacements + and provides easy, concise, powerful, fast and flexible error handling +* a set of functions that can be used to rapidly identify if an input could be + converted to int or float + +WWW: https://github.com/SethMMorton/fastnumbers