package: add python-validators
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 15 Jun 2018 12:54:55 +0000 (14:54 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 16 Jun 2018 08:38:41 +0000 (10:38 +0200)
Simple data validation library.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/python-validators/Config.in [new file with mode: 0644]
package/python-validators/python-validators.hash [new file with mode: 0644]
package/python-validators/python-validators.mk [new file with mode: 0644]

index e276b45565520f3d7a581975f5883f0df9b7115f..07c24acb9192c73d75ba8e4106196d860c05f96e 100644 (file)
@@ -1534,6 +1534,7 @@ F:        package/python-pam/
 F:     package/python-psutil/
 F:     package/python-request-id/
 F:     package/python-texttable/
+F:     package/python-validators/
 F:     package/python-webob/
 F:     package/python-websocket-client/
 F:     package/triggerhappy/
index fcabed4fde7dd51961087ad2eff2d64f69c18368..368c05df0b19b16899d377c1033601cb0354d849 100644 (file)
@@ -965,6 +965,7 @@ menu "External python modules"
        source "package/python-ujson/Config.in"
        source "package/python-urllib3/Config.in"
        source "package/python-urwid/Config.in"
+       source "package/python-validators/Config.in"
        source "package/python-versiontools/Config.in"
        source "package/python-visitor/Config.in"
        source "package/python-watchdog/Config.in"
diff --git a/package/python-validators/Config.in b/package/python-validators/Config.in
new file mode 100644 (file)
index 0000000..e700369
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_VALIDATORS
+       bool "python-validators"
+       select BR2_PACKAGE_PYTHON_SIX # runtime
+       select BR2_PACKAGE_PYTHON_DECORATOR # runtime
+       help
+         Python Data Validation for Humans.
+
+         https://github.com/kvesteri/validators
diff --git a/package/python-validators/python-validators.hash b/package/python-validators/python-validators.hash
new file mode 100644 (file)
index 0000000..8c6e3f9
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/validators/json
+md5    9c9583f91972163b3b736033bb929d8a  validators-0.12.2.tar.gz
+sha256 172ac45f7d1944ce4beca3c5c53ca7c83e9759e39fd3fedc1cf28e2130268706  validators-0.12.2.tar.gz
+# Locally computed sha256 checksums
+sha256 a7fd9d761c7ca1c6508b9baf030f6e21f5752d1caea3e49a270634aa9ef01e6f  LICENSE
diff --git a/package/python-validators/python-validators.mk b/package/python-validators/python-validators.mk
new file mode 100644 (file)
index 0000000..e94476f
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-validators
+#
+################################################################################
+
+PYTHON_VALIDATORS_VERSION = 0.12.2
+PYTHON_VALIDATORS_SOURCE = validators-$(PYTHON_VALIDATORS_VERSION).tar.gz
+PYTHON_VALIDATORS_SITE = https://files.pythonhosted.org/packages/45/7b/5b7b74208a3e0744d1a0efbfb1935fa46fa4cfe58d3d63f17c49c58c429c
+PYTHON_VALIDATORS_SETUP_TYPE = setuptools
+PYTHON_VALIDATORS_LICENSE = BSD
+PYTHON_VALIDATORS_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))