diff --git a/textproc/py-hashids/Makefile b/textproc/py-hashids/Makefile index 38aa8c65a293..84070edac10d 100644 --- a/textproc/py-hashids/Makefile +++ b/textproc/py-hashids/Makefile @@ -1,28 +1,28 @@ # Created by: Po-Chuan Hsieh PORTNAME= hashids PORTVERSION= 1.3.1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Implement the hashids algorithm in python LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} USES= python:3.5+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes post-patch: - @${CP} ${FILESDIR}/setup.py ${WRKSRC}/ + @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py do-test: cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v .include diff --git a/textproc/py-hashids/files/setup.py b/textproc/py-hashids/files/setup.py index f8b9328f2033..ede9026d3886 100644 --- a/textproc/py-hashids/files/setup.py +++ b/textproc/py-hashids/files/setup.py @@ -1,18 +1,18 @@ #!/usr/bin/env python # setup.py generated by flit for tools that don't yet use PEP 517 from distutils.core import setup extras_require = \ {'test': ['pytest >=2.1.0']} setup(name='hashids', - version='1.3.1', + version='%%PORTVERSION%%', description='Implements the hashids algorithm in python. For more information, visit http://hashids.org/', author='David Aurelio', author_email='dev@david-aurelio.com', url='https://hashids.org/python/', py_modules=['hashids'], extras_require=extras_require, python_requires='>=2.7', )