Merge pull request #66208 from seqizz/g_djangopostnet

django-postgresql-netfields: init at 1.2.2
This commit is contained in:
Silvan Mosberger 2020-01-01 03:10:30 +01:00 committed by GitHub
commit 956820abc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -3160,6 +3160,8 @@ in {
django_polymorphic = callPackage ../development/python-modules/django-polymorphic { };
django-postgresql-netfields = callPackage ../development/python-modules/django-postgresql-netfields { };
django-rest-auth = callPackage ../development/python-modules/django-rest-auth { };
django-sampledatahelper = callPackage ../development/python-modules/django-sampledatahelper { };