mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -04:00
Add devel/py-validators: Simple data validation in Python
Python has all kinds of data validation tools, but every one of them seems to require defining a schema or form. This is a simple validation library where validating a simple value does not require defining a form or a schema. >>> import validators >>> validators.email('someone@example.com') True WWW: https://pypi.python.org/pypi/validators
This commit is contained in:
parent
75b43586ed
commit
9e9982bc74
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466702
4 changed files with 37 additions and 0 deletions
|
@ -5027,6 +5027,7 @@
|
|||
SUBDIR += py-usb
|
||||
SUBDIR += py-user_agents
|
||||
SUBDIR += py-utils
|
||||
SUBDIR += py-validators
|
||||
SUBDIR += py-validictory
|
||||
SUBDIR += py-vcrpy
|
||||
SUBDIR += py-vcversioner
|
||||
|
|
23
devel/py-validators/Makefile
Normal file
23
devel/py-validators/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= validators
|
||||
DISTVERSION= 0.12.1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= dbaio@FreeBSD.org
|
||||
COMMENT= Simple data validation in Python
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.4.0:devel/py-six@${FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}decorator>=3.4.0:devel/py-decorator@${FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/py-validators/distinfo
Normal file
3
devel/py-validators/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1523055353
|
||||
SHA256 (validators-0.12.1.tar.gz) = 79855e18710be5d8ba5e0c16086d76f230af11df2b8341b64995b42153c7f204
|
||||
SIZE (validators-0.12.1.tar.gz) = 21734
|
10
devel/py-validators/pkg-descr
Normal file
10
devel/py-validators/pkg-descr
Normal file
|
@ -0,0 +1,10 @@
|
|||
Python has all kinds of data validation tools, but every one of them seems to
|
||||
require defining a schema or form. This is a simple validation library where
|
||||
validating a simple value does not require defining a form or a schema.
|
||||
|
||||
>>> import validators
|
||||
|
||||
>>> validators.email('someone@example.com')
|
||||
True
|
||||
|
||||
WWW: https://pypi.python.org/pypi/validators
|
Loading…
Add table
Reference in a new issue