Loading pkgs/development/python-modules/django-postgresql-netfields/default.nix +19 −18 Original line number Diff line number Diff line { lib { stdenv , lib , buildPythonPackage , django , netaddr , six , fetchFromGitHub , pythonOlder , djangorestframework # required for tests #, djangorestframework #, psycopg2 , postgresql , postgresqlTestHook , psycopg2 , pytestCheckHook , pytest-django }: buildPythonPackage rec { Loading @@ -30,23 +35,19 @@ buildPythonPackage rec { six ]; # tests need a postgres database doCheck = false; doCheck = !stdenv.isDarwin; # could not create shared memory segment: Operation not permitted # keeping the dependencies below as comment for reference # checkPhase = '' # python manage.py test # ''; # buildInputs = [ # djangorestframework # psycopg2 # ]; nativeCheckInputs = [ djangorestframework postgresql postgresqlTestHook psycopg2 pytestCheckHook pytest-django ]; # Requires psycopg2 # pythonImportsCheck = [ # "netfields" # ]; postgresqlTestUserOptions = "LOGIN SUPERUSER"; env.DJANGO_SETTINGS_MODULE = "testsettings"; meta = with lib; { description = "Django PostgreSQL netfields implementation"; Loading Loading
pkgs/development/python-modules/django-postgresql-netfields/default.nix +19 −18 Original line number Diff line number Diff line { lib { stdenv , lib , buildPythonPackage , django , netaddr , six , fetchFromGitHub , pythonOlder , djangorestframework # required for tests #, djangorestframework #, psycopg2 , postgresql , postgresqlTestHook , psycopg2 , pytestCheckHook , pytest-django }: buildPythonPackage rec { Loading @@ -30,23 +35,19 @@ buildPythonPackage rec { six ]; # tests need a postgres database doCheck = false; doCheck = !stdenv.isDarwin; # could not create shared memory segment: Operation not permitted # keeping the dependencies below as comment for reference # checkPhase = '' # python manage.py test # ''; # buildInputs = [ # djangorestframework # psycopg2 # ]; nativeCheckInputs = [ djangorestframework postgresql postgresqlTestHook psycopg2 pytestCheckHook pytest-django ]; # Requires psycopg2 # pythonImportsCheck = [ # "netfields" # ]; postgresqlTestUserOptions = "LOGIN SUPERUSER"; env.DJANGO_SETTINGS_MODULE = "testsettings"; meta = with lib; { description = "Django PostgreSQL netfields implementation"; Loading