1{ lib
2, buildPythonPackage
3, django
4, netaddr
5, six
6, fetchFromGitHub
7# required for tests
8#, djangorestframework
9#, psycopg2
10#, unittest2
11}:
12
13buildPythonPackage rec {
14 version = "1.2.2";
15 pname = "django-postgresql-netfields";
16
17 src = fetchFromGitHub {
18 owner = "jimfunk";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "1rrh38f3zl3jk5ijs6g75dxxvxygf4lczbgc7ahrgzf58g4a48lm";
22 };
23
24 # tests need a postgres database
25 doCheck = false;
26
27 # keeping the dependencies below as comment for reference
28 # checkPhase = ''
29 # python manage.py test
30 # '';
31
32 # buildInputs = [
33 # djangorestframework
34 # psycopg2
35 # unittest2
36 # ];
37
38 propagatedBuildInputs = [
39 django
40 netaddr
41 six
42 ];
43
44 meta = with lib; {
45 description = "Django PostgreSQL netfields implementation";
46 homepage = "https://github.com/jimfunk/django-postgresql-netfields";
47 license = licenses.bsd2;
48 };
49}