Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
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.5.0"; format = "setuptools";
src = fetchFromGitHub { owner = "jimfunk"; repo = "django-postgresql-netfields"; rev = "v${version}"; hash = "sha256-Lae7Ql+poy0IDdEsIG8o3SHgqiJ1U8VWCgrLWmLE7TU="; };
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 = [ ]; };}