aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/django-postgresql-netfields/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/django-postgresql-netfields/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/django-postgresql-netfields/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/django-postgresql-netfields/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/django-postgresql-netfields/default.nix
new file mode 100644
index 000000000000..73c15850d33c
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/django-postgresql-netfields/default.nix
@@ -0,0 +1,49 @@
+{ stdenv
+, buildPythonPackage
+, django
+, netaddr
+, six
+, fetchFromGitHub
+# required for tests
+#, djangorestframework
+#, psycopg2
+#, unittest2
+}:
+
+buildPythonPackage rec {
+ version = "1.2.2";
+ pname = "django-postgresql-netfields";
+
+ src = fetchFromGitHub {
+ owner = "jimfunk";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "1rrh38f3zl3jk5ijs6g75dxxvxygf4lczbgc7ahrgzf58g4a48lm";
+ };
+
+ # tests need a postgres database
+ doCheck = false;
+
+ # keeping the dependencies below as comment for reference
+ # checkPhase = ''
+ # python manage.py test
+ # '';
+
+ # buildInputs = [
+ # djangorestframework
+ # psycopg2
+ # unittest2
+ # ];
+
+ propagatedBuildInputs = [
+ django
+ netaddr
+ six
+ ];
+
+ meta = with stdenv.lib; {
+ description = "Django PostgreSQL netfields implementation";
+ homepage = "https://github.com/jimfunk/django-postgresql-netfields";
+ license = licenses.bsd2;
+ };
+}