Skip to content
Snippets Groups Projects
Verified Commit af826bb9 authored by sunpoet's avatar sunpoet
Browse files

textproc/py-hashids: Add py-hashids 1.3.1

hashids is a Python port of the JavaScript hashids implementation. It generates
YouTube-like hashes from one or many numbers. Use hashids when you do not want
to expose your database ids to the user.

WWW: https://github.com/davidaurelio/hashids-python
parent 3482259d
No related branches found
No related tags found
No related merge requests found
......@@ -1294,6 +1294,7 @@
SUBDIR += py-googletrans
SUBDIR += py-grako
SUBDIR += py-guess-language
SUBDIR += py-hashids
SUBDIR += py-hexdump
SUBDIR += py-hieroglyph
SUBDIR += py-hjson
......
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
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}/
do-test:
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.mk>
TIMESTAMP = 1625585426
SHA256 (hashids-1.3.1.tar.gz) = 6c3dc775e65efc2ce2c157a65acb776d634cb814598f406469abef00ae3f635c
SIZE (hashids-1.3.1.tar.gz) = 7884
#!/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',
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',
)
hashids is a Python port of the JavaScript hashids implementation. It generates
YouTube-like hashes from one or many numbers. Use hashids when you do not want
to expose your database ids to the user.
WWW: https://github.com/davidaurelio/hashids-python
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment