summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2020-09-01 15:23:53 +0200
committerMarius Bakke <marius@gnu.org>2020-09-22 18:41:58 +0200
commitcc62ab592fa9876d92043b6cb7dcbd9832857f4e (patch)
tree6739e487b124983796f7b2005a8deaa6efce0a5f
parentc96bc57a1e8b517e987bb1bd7144be46d05b0bbc (diff)
downloadguix-cc62ab592fa9876d92043b6cb7dcbd9832857f4e.tar.gz
gnu: Add python-django-netfields.
* gnu/packages/django.scm (python-django-netfields): New public variable.
-rw-r--r--gnu/packages/django.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index b109df148c..43d73de2f1 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1230,3 +1230,27 @@ FileFields during tests.")
 and exception details in a JSON document.  It can also send logs directly
 to ElasticSearch.")
     (license license:bsd-2)))
+
+(define-public python-django-netfields
+  (package
+    (name "python-django-netfields")
+    (version "1.2.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "django-netfields" version))
+              (sha256
+               (base32
+                "1c47azr5am0q8g45x0fbn0cay7vyrack6n7k6siliw1j2p0gzi7s"))))
+    (build-system python-build-system)
+    (arguments '(#:tests? #f))      ;XXX: Requires a running PostgreSQL server
+    (propagated-inputs
+     `(("python-django" ,python-django)
+       ("python-ipaddress" ,python-ipaddress)
+       ("python-netaddr" ,python-netaddr)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/jimfunk/django-postgresql-netfields")
+    (synopsis "PostgreSQL netfields implementation for Django")
+    (description
+     "This package provides mappings for the PostgreSQL @code{INET} and
+@code{CIDR} fields for use in Django projects.")
+    (license license:bsd-3)))