Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 57 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ stdenv, lib, buildPythonPackage, django, netaddr, six, fetchFromGitHub, djangorestframework, # required for tests postgresql, postgresqlTestHook, psycopg2, pytestCheckHook, pytest-django,}:
buildPythonPackage rec { pname = "django-postgresql-netfields"; version = "1.4.1"; format = "setuptools";
src = fetchFromGitHub { owner = "jimfunk"; repo = "django-postgresql-netfields"; rev = "v${version}"; hash = "sha256-oUmgV3MaEOYULvadHZgGYtshlIqYrvQpejYfeMzx1vg="; };
propagatedBuildInputs = [ django netaddr six ];
doCheck = !stdenv.hostPlatform.isDarwin; # could not create shared memory segment: Operation not permitted
nativeCheckInputs = [ djangorestframework postgresql postgresqlTestHook psycopg2 pytestCheckHook pytest-django ];
postgresqlTestUserOptions = "LOGIN SUPERUSER"; env.DJANGO_SETTINGS_MODULE = "testsettings";
meta = { description = "Django PostgreSQL netfields implementation"; homepage = "https://github.com/jimfunk/django-postgresql-netfields"; changelog = "https://github.com/jimfunk/django-postgresql-netfields/blob/v${version}/CHANGELOG"; license = lib.licenses.bsd2; maintainers = [ ]; };}