summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2022-02-20 11:38:00 +0100
committerKai Knoblich <kai@FreeBSD.org>2022-02-20 11:42:42 +0100
commit5042b00226c3e3fc908b0402f7ffefe66e4520d7 (patch)
treed1bf261265746ade8c8483a8668cd5cfd264c48d
parentdatabases/py-minidb: Update to 2.0.6 (diff)
www/py-dj-database-url: Add new port
This simple Django utility allows you to utilize the 12factor inspired DATABASE_URL environment variable to configure your Django application. The dj_database_url.config method returns a Django database connection dictionary, populated with all the data specified in your URL. There is also a conn_max_age argument to easily enable Django’s connection pool. If you’d rather not use an environment variable, you can pass a URL in directly instead to dj_database_url.parse. Supported Databases: Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), Oracle, Oracle (GIS), and SQLite. WWW: https://github.com/kennethreitz/dj-database-url
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj-database-url/Makefile18
-rw-r--r--www/py-dj-database-url/distinfo3
-rw-r--r--www/py-dj-database-url/pkg-descr16
4 files changed, 38 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 89924d89b41e..7429efe29ab0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1450,6 +1450,7 @@
SUBDIR += py-cssmin
SUBDIR += py-cssselect
SUBDIR += py-cssutils
+ SUBDIR += py-dj-database-url
SUBDIR += py-dj32-django-auth-ldap
SUBDIR += py-dj32-django-cacheops
SUBDIR += py-dj32-django-cors-headers
diff --git a/www/py-dj-database-url/Makefile b/www/py-dj-database-url/Makefile
new file mode 100644
index 000000000000..14085cc7f820
--- /dev/null
+++ b/www/py-dj-database-url/Makefile
@@ -0,0 +1,18 @@
+PORTNAME= dj-database-url
+DISTVERSION= 0.5.0
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Use Database URLs in your Django Application
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj-database-url/distinfo b/www/py-dj-database-url/distinfo
new file mode 100644
index 000000000000..3cad7fa94da2
--- /dev/null
+++ b/www/py-dj-database-url/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1644813619
+SHA256 (dj-database-url-0.5.0.tar.gz) = 4aeaeb1f573c74835b0686a2b46b85990571159ffc21aa57ecd4d1e1cb334163
+SIZE (dj-database-url-0.5.0.tar.gz) = 5482
diff --git a/www/py-dj-database-url/pkg-descr b/www/py-dj-database-url/pkg-descr
new file mode 100644
index 000000000000..c4b1c4d33c2e
--- /dev/null
+++ b/www/py-dj-database-url/pkg-descr
@@ -0,0 +1,16 @@
+This simple Django utility allows you to utilize the 12factor inspired
+DATABASE_URL environment variable to configure your Django application.
+
+The dj_database_url.config method returns a Django database connection
+dictionary, populated with all the data specified in your URL. There is
+also a conn_max_age argument to easily enable Django’s connection pool.
+
+If you’d rather not use an environment variable, you can pass a URL in
+directly instead to dj_database_url.parse.
+
+Supported Databases:
+
+Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS),
+Oracle, Oracle (GIS), and SQLite.
+
+WWW: https://github.com/kennethreitz/dj-database-url