package/python-django-enumfields: new package
authorAdam Duskett <Aduskett@gmail.com>
Sun, 4 Aug 2019 01:16:24 +0000 (21:16 -0400)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 27 Sep 2019 21:40:26 +0000 (23:40 +0200)
This package lets you use real Python (PEP435-style) enums with Django.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
[Thomas: add select on python-enum34 if python 2.x is used]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-django-enumfields/Config.in [new file with mode: 0644]
package/python-django-enumfields/python-django-enumfields.hash [new file with mode: 0644]
package/python-django-enumfields/python-django-enumfields.mk [new file with mode: 0644]

index ee534c81497765e7d8f7da611db5aee069372fee..393b617ca04f8c7572feca3d9ceb6102f1dba267 100644 (file)
@@ -54,6 +54,7 @@ F:    package/openjdk-bin/
 F:     package/php/
 F:     package/policycoreutils/
 F:     package/python3/
+F:     package/python-django-enumfields/
 F:     package/python-flask-sqlalchemy/
 F:     package/python-mutagen/
 F:     package/python-pip/
index d3f09d45c1f0671956960d82fbcdb629a396c9a5..8515eadbd0402e5df5d1ea0524bf4c3c0ce93bb2 100644 (file)
@@ -880,6 +880,7 @@ menu "External python modules"
        source "package/python-dialog3/Config.in"
        source "package/python-dicttoxml/Config.in"
        source "package/python-django/Config.in"
+       source "package/python-django-enumfields/Config.in"
        source "package/python-docker/Config.in"
        source "package/python-docker-pycreds/Config.in"
        source "package/python-dockerpty/Config.in"
diff --git a/package/python-django-enumfields/Config.in b/package/python-django-enumfields/Config.in
new file mode 100644 (file)
index 0000000..58dea36
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_DJANGO_ENUMFIELDS
+       bool "python-django-enumfields"
+       select BR2_PACKAGE_PYTHON_ENUM34 if BR2_PACKAGE_PYTHON # runtime
+       help
+         Real Python Enums for Django.
+
+         https://github.com/hzdg/django-enumfields
diff --git a/package/python-django-enumfields/python-django-enumfields.hash b/package/python-django-enumfields/python-django-enumfields.hash
new file mode 100644 (file)
index 0000000..84eb028
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/django-enumfields/json
+md5    c9725a2c31ca2949d111815742335279  django-enumfields-1.0.0.tar.gz
+sha256 5b0e2dd5973337717ca6bd5a7d9e167e6ae01203c160d4761b88837c4678f219  django-enumfields-1.0.0.tar.gz
+# Locally computed sha256 checksums
+sha256 5548de8c163dc57bd0a4f5772f1509f2c04f1390251c98ebf060c9d52a223f57  LICENSE
diff --git a/package/python-django-enumfields/python-django-enumfields.mk b/package/python-django-enumfields/python-django-enumfields.mk
new file mode 100644 (file)
index 0000000..0121bd1
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-django-enumfields
+#
+################################################################################
+
+PYTHON_DJANGO_ENUMFIELDS_VERSION = 1.0.0
+PYTHON_DJANGO_ENUMFIELDS_SOURCE = django-enumfields-$(PYTHON_DJANGO_ENUMFIELDS_VERSION).tar.gz
+PYTHON_DJANGO_ENUMFIELDS_SITE = https://files.pythonhosted.org/packages/b7/56/3f4e8d8ef6d5577a1b75b3cfae6dff819afd030e3a519a326ec7a7a0b74f
+PYTHON_DJANGO_ENUMFIELDS_SETUP_TYPE = setuptools
+PYTHON_DJANGO_ENUMFIELDS_LICENSE = MIT
+PYTHON_DJANGO_ENUMFIELDS_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))